X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/4fe42e6312780d5c325ddd8e533b3198d065bd05..d323b5da574ae8dabee51d8b7e74498d45784ab7:/stgit/main.py diff --git a/stgit/main.py b/stgit/main.py index 53a1ac1..9fa0afc 100644 --- a/stgit/main.py +++ b/stgit/main.py @@ -30,6 +30,7 @@ from stgit.commands.common import * # The commands import stgit.commands.add import stgit.commands.applied +import stgit.commands.assimilate import stgit.commands.branch import stgit.commands.delete import stgit.commands.diff @@ -70,6 +71,7 @@ import stgit.commands.uncommit commands = { 'add': stgit.commands.add, 'applied': stgit.commands.applied, + 'assimilate': stgit.commands.assimilate, 'branch': stgit.commands.branch, 'delete': stgit.commands.delete, 'diff': stgit.commands.diff, @@ -113,6 +115,7 @@ repocommands = ( ) stackcommands = ( 'applied', + 'assimilate', 'clean', 'commit', 'float', @@ -195,7 +198,7 @@ def main(): prog = os.path.basename(sys.argv[0]) if len(sys.argv) < 2: - print >> sys.stderr, 'Unknown command' + print >> sys.stderr, 'usage: %s ' % prog print >> sys.stderr, \ ' Try "%s --help" for a list of supported commands' % prog sys.exit(1) @@ -203,7 +206,7 @@ def main(): cmd = sys.argv[1] if cmd in ['-h', '--help']: - if len(sys.argv) == 3 and sys.argv[2] in commands: + if len(sys.argv) >= 3 and sys.argv[2] in commands: cmd = sys.argv[2] sys.argv[2] = '--help' else: