Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Change --wordsOnly option to --words-only #1928

Merged
merged 1 commit into from
Oct 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cspell/src/__snapshots__/app.test.ts.snap
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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