From af57e08b10fb5a3e84f16eda7ff992d7a8c8e0be Mon Sep 17 00:00:00 2001 From: Matthew Smith Date: Fri, 25 Sep 2015 14:04:22 -0600 Subject: [PATCH] Fix help cli option to not throw an exception Resolves #81 --- src/parse-cli-args.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/parse-cli-args.js b/src/parse-cli-args.js index eb6ad6c..8d89f0c 100644 --- a/src/parse-cli-args.js +++ b/src/parse-cli-args.js @@ -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) {