summaryrefslogtreecommitdiff
path: root/imap-send.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2009-11-09 09:04:51 -0600
committerJunio C Hamano <gitster@pobox.com>2009-11-10 11:06:57 -0800
commit9a2861e32a147d89f22961bd7d3257b8776de4d2 (patch)
tree49a6e0dd7836086ac8f297615347f738f9562d95 /imap-send.c
parente9dd085d93fb6695f1d28572b48374ef818cf9c3 (diff)
downloadgit-9a2861e32a147d89f22961bd7d3257b8776de4d2.tar.gz
Show usage string for 'git imap-send -h'
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'imap-send.c')
-rw-r--r--imap-send.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/imap-send.c b/imap-send.c
index 3847fd151d..04e537406e 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -93,6 +93,8 @@ struct msg_data {
unsigned int crlf:1;
};
+static const char imap_send_usage[] = "git imap-send < <mbox>";
+
#define DRV_OK 0
#define DRV_MSG_BAD -1
#define DRV_BOX_BAD -2
@@ -1491,6 +1493,9 @@ int main(int argc, char **argv)
git_extract_argv0_path(argv[0]);
+ if (argc != 1)
+ usage(imap_send_usage);
+
/* init the random number generator */
arc4_init();