From: Catalin Marinas Date: Wed, 7 Sep 2005 09:45:13 +0000 (+0100) Subject: Add a copyright command to display the copyright terms X-Git-Tag: v0.7~40 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/22ea91023037f7f7f4256b2dbc79d8fb6830e5fc?ds=sidebyside Add a copyright command to display the copyright terms Signed-off-by: Catalin Marinas --- diff --git a/stgit/main.py b/stgit/main.py index 2350013..99df5a4 100644 --- a/stgit/main.py +++ b/stgit/main.py @@ -92,6 +92,7 @@ def print_help(): print 'commands:' print ' help print this message' print ' version display version information' + print ' copyright display copyright information' print cmds = commands.keys() @@ -122,6 +123,9 @@ def main(): print 'Stacked GIT %s' % version print 'Python version %s' % sys.version sys.exit(0) + if cmd in ['copyright']: + print __copyright__ + sys.exit(0) if not cmd in commands: print >> sys.stderr, 'Unknown command: %s' % cmd print >> sys.stderr, ' Try "%s help" for a list of supported commands' \