From: Jonathan Nieder Date: Mon, 9 Nov 2009 15:04:51 +0000 (-0600) Subject: Show usage string for 'git imap-send -h' X-Git-Tag: v1.6.6-rc0~34^2~13 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9a2861e32a147d89f22961bd7d3257b8776de4d2;p=git.git Show usage string for 'git imap-send -h' Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/imap-send.c b/imap-send.c index 3847fd151..04e537406 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 < "; + #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();