Skip to content

Commit 6663e94

Browse files
authored
chore(cli): show help when invalid flag is supplied (#1051)
* fix(bootstrap): handle invalid flags handle invalid flags and show help in case invalid flag is supplied ISSUES CLOSED: #1046 * cli(cli): cleanup custom logic to determine invalid flags cleanup custom logic to determine invalid flags ISSUES CLOSED: #1046
1 parent 70c04ea commit 6663e94

File tree

2 files changed

+2241
-6053
lines changed

2 files changed

+2241
-6053
lines changed

lib/bootstrap.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ async function runCLI(cli, commandIsUsed) {
6969
.forEach(unknown => {
7070
logger.warn('Unknown argument:', unknown);
7171
});
72+
return cli.runHelp(process.argv);
7273
}
7374
const result = await cli.run(args, core);
7475
if (!result) {

0 commit comments

Comments
 (0)