Skip to content

Commit

Permalink
Fix some typos (#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel authored Nov 17, 2022
1 parent 0b4198d commit 8d3c7b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class Help {

/**
* Get the subcommand summary to show in the list of subcommands.
* (Fallback to description for backwards compatiblity.)
* (Fallback to description for backwards compatibility.)
*
* @param {Command} cmd
* @returns {string}
Expand Down
2 changes: 1 addition & 1 deletion tests/deprecated.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('option with regular expression instead of custom processing function',
expect(program.opts().cheese).toEqual('tasty');
});

test('when argument does mot matches regexp then value is default', () => {
test('when argument does not match regexp then value is default', () => {
const program = new commander.Command();
program
.option('--cheese <type>', 'cheese type', /mild|tasty/, 'mild');
Expand Down
2 changes: 1 addition & 1 deletion tests/help.wrap.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Commands:
expect(program.helpInformation()).toBe(expectedOutput);
});

test('when option descripton preformatted then only add small indent', () => {
test('when option description preformatted then only add small indent', () => {
// #396: leave custom format alone, apart from space-space indent
const optionSpec = '-t, --time <HH:MM>';
const program = new commander.Command();
Expand Down

0 comments on commit 8d3c7b5

Please sign in to comment.