diff options
Diffstat (limited to 'qpid/tools/src/py')
| -rwxr-xr-x | qpid/tools/src/py/qpid-ha | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/qpid/tools/src/py/qpid-ha b/qpid/tools/src/py/qpid-ha index 10be34475c..76d9abde79 100755 --- a/qpid/tools/src/py/qpid-ha +++ b/qpid/tools/src/py/qpid-ha @@ -261,8 +261,11 @@ def main_except(argv): if "--cluster-manager" in args: commands += ManagerCommand.manager_commands args.remove("--cluster-manager") - if "--help-all" in args: - for c in commands: c.op.print_help(); print + if len(args) and args[0] in ['help', '--help', '-help', '-h', 'help-all', '--help-all']: + if 'help-all' in args[0]: + for c in commands: c.op.print_help(); print + else: + print_usage(os.path.basename(argv[0])); else: command = find_command(args, commands) if command: |
