Skip to content

Commit 8d3c7b5

Browse files
authored
Fix some typos (#1821)
1 parent 0b4198d commit 8d3c7b5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/help.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class Help {
216216

217217
/**
218218
* Get the subcommand summary to show in the list of subcommands.
219-
* (Fallback to description for backwards compatiblity.)
219+
* (Fallback to description for backwards compatibility.)
220220
*
221221
* @param {Command} cmd
222222
* @returns {string}

tests/deprecated.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('option with regular expression instead of custom processing function',
2121
expect(program.opts().cheese).toEqual('tasty');
2222
});
2323

24-
test('when argument does mot matches regexp then value is default', () => {
24+
test('when argument does not match regexp then value is default', () => {
2525
const program = new commander.Command();
2626
program
2727
.option('--cheese <type>', 'cheese type', /mild|tasty/, 'mild');

tests/help.wrap.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Commands:
142142
expect(program.helpInformation()).toBe(expectedOutput);
143143
});
144144

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

0 commit comments

Comments
 (0)