Skip to content

Commit

Permalink
Don't list the --font-display values in prose alongside yargs' identi…
Browse files Browse the repository at this point in the history
…cal list
  • Loading branch information
papandreou committed Aug 3, 2020
1 parent 7a7850e commit 19dcfcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] <htmlFile(s) | url(s)>
Expand Down Expand Up @@ -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]
Expand Down
3 changes: 1 addition & 2 deletions lib/parseCommandLineOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 19dcfcb

Please sign in to comment.