You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by bo...@apache.org on 2014/10/15 18:15:40 UTC

[27/50] git commit: STORM-488: Exit with 254 error code if storm CLI is run with unknown command

STORM-488: Exit with 254 error code if storm CLI is run with unknown command


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/b3528c7d
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/b3528c7d
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/b3528c7d

Branch: refs/heads/security
Commit: b3528c7d9bcb5a04bc5bac5f7ea571f0c8ea0984
Parents: 5aaea84
Author: Michael G. Noll <mn...@verisign.com>
Authored: Thu Oct 2 10:02:55 2014 +0200
Committer: Michael G. Noll <mn...@verisign.com>
Committed: Thu Oct 2 10:07:27 2014 +0200

----------------------------------------------------------------------
 bin/storm | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/b3528c7d/bin/storm
----------------------------------------------------------------------
diff --git a/bin/storm b/bin/storm
index 2c75e58..fee548a 100755
--- a/bin/storm
+++ b/bin/storm
@@ -467,6 +467,7 @@ def print_usage(command=None):
 def unknown_command(*args):
     print("Unknown command: [storm %s]" % ' '.join(sys.argv[1:]))
     print_usage()
+    sys.exit(254)
 
 COMMANDS = {"jar": jar, "kill": kill, "shell": shell, "nimbus": nimbus, "ui": ui, "logviewer": logviewer,
             "drpc": drpc, "supervisor": supervisor, "localconfvalue": print_localconfvalue,