Skip to content
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 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