diff --git a/README.md b/README.md index 81bf85a4..c6ca0984 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,6 @@ You can also have subfont scrape a website directly using http and write the out ## Command line options ``` -$ subfont --help Create optimal font subsets from your actual font usage. subfont [options] @@ -89,8 +88,7 @@ Options: [boolean] [default: false] --inline-css Inline CSS that declares the @font-face for the subset fonts [boolean] [default: false] - --font-display Injects a font-display value into the @font-face CSS. Valid - values: auto, block, swap, fallback, optional + --font-display Injects a font-display value into the @font-face CSS. [string] [choices: "auto", "block", "swap", "fallback", "optional"] [default: "swap"] --subset-per-page Create a unique subset for each page. [boolean] [default: false] diff --git a/lib/parseCommandLineOptions.js b/lib/parseCommandLineOptions.js index a15473a0..8fe3f5a2 100644 --- a/lib/parseCommandLineOptions.js +++ b/lib/parseCommandLineOptions.js @@ -67,8 +67,7 @@ module.exports = function parseCommandLineOptions(argv) { default: false, }) .options('font-display', { - describe: - 'Injects a font-display value into the @font-face CSS. Valid values: auto, block, swap, fallback, optional', + describe: 'Injects a font-display value into the @font-face CSS.', type: 'string', default: 'swap', choices: ['auto', 'block', 'swap', 'fallback', 'optional'],