summaryrefslogtreecommitdiff
path: root/imap-send.c
diff options
context:
space:
mode:
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 6c9938a075..834301cf40 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -94,6 +94,8 @@ struct msg_data {
unsigned int crlf:1;
};
+static const char imap_send_usage[] = "git imap-send < <mbox>";
+
#undef DRV_OK
#define DRV_OK 0
#define DRV_MSG_BAD -1
@@ -1370,6 +1372,9 @@ int main(int argc, char **argv)
git_extract_argv0_path(argv[0]);
+ if (argc != 1)
+ usage(imap_send_usage);
+
setup_git_directory_gently(&nongit_ok);
git_config(git_imap_config, NULL);