Skip to content

Commit c55130c

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/parse-cli-args.js

Lines changed: 4 additions & 1 deletion
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)