From: Karl Hasselström Date: Wed, 25 Oct 2006 19:24:54 +0000 (+0100) Subject: When no command was given, print usage message X-Git-Tag: v0.14.3~449 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/d00e708af18a0fffe53795dc547873d3efd1c909 When no command was given, print usage message It's just silly to say "Unknown command" when the user didn't give a command. Better to tell her to use a command. Signed-off-by: Karl Hasselström --- diff --git a/stgit/main.py b/stgit/main.py index 53a1ac1..ea65288 100644 --- a/stgit/main.py +++ b/stgit/main.py @@ -195,7 +195,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)