A proper fix for help

pull/85/head
Ruben Daniels 2015-05-03 00:18:05 +00:00
rodzic d8d798d6da
commit 608a86c05c
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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");