We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ea3bb3 commit 987f289Copy full SHA for 987f289
1 file changed
tests/command.help.test.js
@@ -120,7 +120,9 @@ Commands:
120
const program = new commander.Command();
121
program.option('-h, --host', 'select host');
122
const helpInformation = program.helpInformation();
123
- assert(!/\W-h\W.*display help/.test(helpInformation));
+ assert(helpInformation.includes(' -h, --host'));
124
+ assert(!helpInformation.includes(' -h, --help'));
125
+ assert(helpInformation.includes(' --help'));
126
});
127
128
test('when both help flags masked then not displayed in helpInformation', () => {
0 commit comments