From: Karl Hasselström Date: Wed, 25 Oct 2006 19:24:54 +0000 (+0100) Subject: Let "stg help" be like "stg --help" X-Git-Tag: v0.14.3~450 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/4fe42e6312780d5c325ddd8e533b3198d065bd05 Let "stg help" be like "stg --help" "stg --help" prints the list of commands, but "stg help" just prints the usage message for the help command. This may be useful in theory, but the distinction is probably lost on 95% of all users (and the remaining 5% probably don't need to see the usage message for the help command anyway, since they know how it works). So just make both commands output the helpful command list. Signed-off-by: Karl Hasselström --- diff --git a/stgit/main.py b/stgit/main.py index e9cc6cd..53a1ac1 100644 --- a/stgit/main.py +++ b/stgit/main.py @@ -223,8 +223,7 @@ def main(): option_list = command.options) parser.print_help() else: - print 'usage: %s help ' % prog - + print_help() sys.exit(0) if cmd in ['-v', '--version', 'version']: print 'Stacked GIT %s' % version