From 608a86c05c25aac4e01cffea8542754da0a5a352 Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Sun, 3 May 2015 00:18:05 +0000 Subject: [PATCH] A proper fix for help --- plugins/c9.cli/cli.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/c9.cli/cli.js b/plugins/c9.cli/cli.js index 80e10d73..6c0ec08a 100755 --- a/plugins/c9.cli/cli.js +++ b/plugins/c9.cli/cli.js @@ -77,7 +77,8 @@ define(function(require, exports, module) { argv = optimist .usage("The Cloud9 CLI.\nUsage: c9 " + module + " [--help] " + def.usage) .options(def.options); - if (argv.help) + + if (argv.argv.help) argv = argv.check(function(){ if (argv.help) throw new Error("Help Requested");