projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9dd085
)
Show usage string for 'git imap-send -h'
author
Jonathan Nieder
<jrnieder@gmail.com>
Mon, 9 Nov 2009 15:04:51 +0000
(09:04 -0600)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 10 Nov 2009 19:06:57 +0000
(11:06 -0800)
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c
patch
|
blob
|
history
diff --git
a/imap-send.c
b/imap-send.c
index 3847fd151df6e9f41fdb0b95573882a7d9ac992a..04e537406e4113d5c1ead7b7e4a1a425c9b2bf09 100644
(file)
--- 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();