From 17ccdfbcefea0bb3c18efef29f794ec57d26709a Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Mon, 16 Jun 2008 13:17:11 +0000 Subject: Bugfix: usage line did not show with --help option git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@668151 13f79535-47bb-0310-9956-ffa450edef68 --- python/commands/qpid-tool | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'python') 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] []]" + print "Usage: qpid-tool []]" 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 -- cgit v1.2.1