X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.c;h=3b743a903cf78ca4c48f60caef64eba5aee77f20;hp=95f057eae21b2289df61cc373b354fe0885a07a6;hb=9d9aeb7c71a52b67519f567c34acc3cf3bec6fd2;hpb=f689c83af4e1d271d056b24da9e46e7b679ff978 diff --git a/notmuch.c b/notmuch.c index 95f057ea..3b743a90 100644 --- a/notmuch.c +++ b/notmuch.c @@ -307,7 +307,9 @@ usage (FILE *out) command_t *command; unsigned int i; - fprintf (out, "Usage: notmuch [args...]\n"); + fprintf (out, + "Usage: notmuch --help\n" + " notmuch [args...]\n"); fprintf (out, "\n"); fprintf (out, "Where and [args...] are as follows:\n"); fprintf (out, "\n"); @@ -457,6 +459,9 @@ main (int argc, char *argv[]) if (argc == 1) return notmuch (local); + if (STRNCMP_LITERAL (argv[1], "--help") == 0) + return notmuch_help_command (NULL, 0, NULL); + for (i = 0; i < ARRAY_SIZE (commands); i++) { command = &commands[i];