From d00e708af18a0fffe53795dc547873d3efd1c909 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karl=20Hasselstr=C3=B6m?= Date: Wed, 25 Oct 2006 20:24:54 +0100 Subject: [PATCH] When no command was given, print usage message MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- stgit/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.0