]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch.c
cli: enable notmuch --help command
[notmuch] / notmuch.c
index c528dce2d12100b66d9dffd00093faefd33f5965..9580c3fe1e062b4821b8bd10677aafbd8f5ddc5c 100644 (file)
--- a/notmuch.c
+++ b/notmuch.c
@@ -381,11 +381,11 @@ main (int argc, char *argv[])
        goto DONE;
     }
 
-    notmuch_process_shared_options (NULL);
-
     if (opt_index < argc)
        command_name = argv[opt_index];
 
+    notmuch_process_shared_options (command_name);
+
     command = find_command (command_name);
     if (!command) {
        fprintf (stderr, "Error: Unknown command '%s' (see \"notmuch help\")\n",