diff options
Diffstat (limited to 'python')
| -rwxr-xr-x | python/commands/qpid-tool | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/python/commands/qpid-tool b/python/commands/qpid-tool index bf16faac42..0ab47a01e7 100755 --- a/python/commands/qpid-tool +++ b/python/commands/qpid-tool @@ -140,7 +140,7 @@ class Mcli (Cmd): self.dataObject.close () def Usage (): - print "Usage:", sys.argv[0], "[OPTIONS] [<target-host[:<tcp-port>]]" + print "Usage: qpid-tool [<target-host[:<tcp-port>]]" print sys.exit (1) @@ -150,12 +150,14 @@ def Usage (): # Get host name and port if specified on the command line cargs = sys.argv[1:] - -_host = "localhost" +_host = "localhost" if len (cargs) > 0: _host = cargs[0] +if _host[0] == '-': + Usage() + disp = Display () # Attempt to make a connection to the target broker |
