From 22ea91023037f7f7f4256b2dbc79d8fb6830e5fc Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Wed, 7 Sep 2005 10:45:13 +0100 Subject: [PATCH] Add a copyright command to display the copyright terms Signed-off-by: Catalin Marinas --- stgit/main.py | 4 ++++ 1 file changed, 4 insertions(+) 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' \ -- 2.11.0