chiark
/
gitweb
/
~mdw
/
stgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4fe42e6
)
When no command was given, print usage message
author
Karl Hasselström
<kha@treskal.com>
Wed, 25 Oct 2006 19:24:54 +0000
(20:24 +0100)
committer
Catalin Marinas
<catalin.marinas@gmail.com>
Wed, 25 Oct 2006 19:24:54 +0000
(20:24 +0100)
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 <kha@treskal.com>
stgit/main.py
patch
|
blob
|
blame
|
history
diff --git
a/stgit/main.py
b/stgit/main.py
index 53a1ac1b0d8a367f7337d06ed62021d937c0e2d8..ea65288299ff46bdb59c5adb5861acfd7d4cc739 100644
(file)
--- 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 <command>' % prog
print >> sys.stderr, \
' Try "%s --help" for a list of supported commands' % prog
sys.exit(1)