Skip to content

Commit af57e08

Browse files
committed
Fix help cli option to not throw an exception
Resolves #81
1 parent e50c447 commit af57e08

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: src/parse-cli-args.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import commands from './commands';
55

66
const help = {
77
options: null,
8-
execute: yargs.showHelp
8+
execute() {
9+
yargs.showHelp();
10+
return Promise.resolve(1);
11+
}
912
};
1013

1114
export default function parseCliArgs(argv) {

0 commit comments

Comments
 (0)