X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch.c;h=d44ce9a0da18fced2dd36a474f51d496b85013cf;hb=ffe3097e58220d96c7a18b1b6062330551378b82;hp=77973f80213e0f87c7c45dc088f4257b9ca49115;hpb=386ad3d6a1a4aff086a87c04c225aba4fa85fb4c;p=notmuch diff --git a/notmuch.c b/notmuch.c index 77973f80..d44ce9a0 100644 --- a/notmuch.c +++ b/notmuch.c @@ -621,7 +621,7 @@ main (int argc, char *argv[]) return notmuch (local); if (STRNCMP_LITERAL (argv[1], "--help") == 0) - return notmuch_help_command (NULL, 0, NULL); + return notmuch_help_command (NULL, argc - 1, &argv[1]); if (STRNCMP_LITERAL (argv[1], "--version") == 0) { printf ("notmuch " STRINGIFY(NOTMUCH_VERSION) "\n");