Skip to content

Commit

Permalink
Fix help cli option to not throw an exception
Browse files Browse the repository at this point in the history
Resolves #81
  • Loading branch information
mtscout6 committed Sep 25, 2015
1 parent e50c447 commit af57e08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/parse-cli-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import commands from './commands';

const help = {
options: null,
execute: yargs.showHelp
execute() {
yargs.showHelp();
return Promise.resolve(1);
}
};

export default function parseCliArgs(argv) {
Expand Down

0 comments on commit af57e08

Please sign in to comment.