You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/11/01 02:24:24 UTC

[2/4] git commit: CB-7859 coho foreach should provide help when no command is specified

CB-7859 coho foreach should provide help when no command is specified


Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/1cf8c579
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/1cf8c579
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/1cf8c579

Branch: refs/heads/master
Commit: 1cf8c5797eb880af09478e82552b7f5d1e00684f
Parents: facce79
Author: Josh Soref <js...@blackberry.com>
Authored: Thu Oct 23 17:04:35 2014 -0400
Committer: Josh Soref <js...@blackberry.com>
Committed: Thu Oct 23 17:23:39 2014 -0400

----------------------------------------------------------------------
 src/for-each.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/1cf8c579/src/for-each.js
----------------------------------------------------------------------
diff --git a/src/for-each.js b/src/for-each.js
index 0ec6c71..ba1132e 100644
--- a/src/for-each.js
+++ b/src/for-each.js
@@ -32,7 +32,7 @@ module.exports = function*() {
                'Usage: $0 for-each "shell command"')
         .argv;
 
-    if (argv.h) {
+    if (argv.h || argv._.length <= 1) {
         optimist.showHelp();
         process.exit(1);
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org