Skip to content

Commit

Permalink
fix: Change --wordsOnly option to --words-only (#1928)
Browse files Browse the repository at this point in the history
- replace `--wordsOnly` option with `--words-only`
- hide `--wordsOnly` option but keep it working.
  • Loading branch information
Jason3S committed Oct 31, 2021
1 parent 9e8a9ad commit aac621f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cspell/src/__snapshots__/app.test.ts.snap
Expand Up @@ -302,7 +302,7 @@ Array [
" and French, or \\"en-GB\\" for British English.",
" --language-id <language> Force programming language for unknown",
" extensions. i.e. \\"php\\" or \\"scala\\"",
" --wordsOnly Only output the words not found in the",
" --words-only Only output the words not found in the",
" dictionaries.",
" -u, --unique Only output the first instance of a word not",
" found in the dictionaries.",
Expand Down
5 changes: 4 additions & 1 deletion packages/cspell/src/commandLint.ts
Expand Up @@ -58,7 +58,10 @@ export function commandLint(prog: Command): Command {
'Force programming language for unknown extensions. i.e. "php" or "scala"'
).hideHelp()
)
.option('--wordsOnly', 'Only output the words not found in the dictionaries.')
.option('--words-only', 'Only output the words not found in the dictionaries.')
.addOption(
new CommanderOption('--wordsOnly', 'Only output the words not found in the dictionaries.').hideHelp()
)
.option('-u, --unique', 'Only output the first instance of a word not found in the dictionaries.')
.option('--debug', 'Output information useful for debugging cspell.json files.')
.option(
Expand Down

0 comments on commit aac621f

Please sign in to comment.