Skip to content

Commit

Permalink
chore(cli): show help when invalid flag is supplied (#1051)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
anshumanv authored Feb 10, 2020
1 parent 70c04ea commit 6663e94
Show file tree
Hide file tree
Showing 2 changed files with 2,241 additions and 6,053 deletions.
1 change: 1 addition & 0 deletions lib/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ async function runCLI(cli, commandIsUsed) {
.forEach(unknown => {
logger.warn('Unknown argument:', unknown);
});
return cli.runHelp(process.argv);
}
const result = await cli.run(args, core);
if (!result) {
Expand Down
Loading

0 comments on commit 6663e94

Please sign in to comment.