From 4fe42e6312780d5c325ddd8e533b3198d065bd05 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karl=20Hasselstr=C3=B6m?= Date: Wed, 25 Oct 2006 20:24:54 +0100 Subject: [PATCH] Let "stg help" be like "stg --help" MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit "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 --- stgit/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.11.0