From: "Karl Hasselström" <kha@treskal.com>
To: Catalin Marinas <catalin.marinas@gmail.com>
Cc: git@vger.kernel.org
Subject: [PATCH 2/3] When no command was given, print usage message
Date: Sun, 22 Oct 2006 15:05:26 +0200 [thread overview]
Message-ID: <20061022130526.16449.81113.stgit@localhost> (raw)
In-Reply-To: <20061022130214.16449.41482.stgit@localhost>
From: Karl Hasselström <kha@treskal.com>
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 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/stgit/main.py b/stgit/main.py
index 66128a3..02d1eb1 100644
--- a/stgit/main.py
+++ b/stgit/main.py
@@ -198,7 +198,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)
next prev parent reply other threads:[~2006-10-22 13:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-22 13:02 [PATCH 0/3] Fix a few rough spots in StGIT's help command Karl Hasselström
2006-10-22 13:05 ` [PATCH 1/3] Let "stg help" be like "stg --help" Karl Hasselström
2006-10-22 13:05 ` Karl Hasselström [this message]
2006-10-22 13:05 ` [PATCH 3/3] Disregard extraneous arguments when providing help Karl Hasselström
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061022130526.16449.81113.stgit@localhost \
--to=kha@treskal.com \
--cc=catalin.marinas@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.