X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/dee200d76c847828f4c637ddb27cb67d39b94d7a..0a01a6d0eaf0c6a70819da2f73fc659e7a83b569:/stgit/main.py diff --git a/stgit/main.py b/stgit/main.py index 2336a43..6d86ee4 100644 --- a/stgit/main.py +++ b/stgit/main.py @@ -125,8 +125,12 @@ def main(): cmd = sys.argv[1] if cmd in ['-h', '--help', 'help']: - print_help() - sys.exit(0) + if len(sys.argv) == 3 and sys.argv[2] in commands: + cmd = sys.argv[2] + sys.argv[2] = '--help'; + else: + print_help() + sys.exit(0) if cmd in ['-v', '--version', 'version']: print 'Stacked GIT %s' % version os.system('git --version')