X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.c;h=9580c3fe1e062b4821b8bd10677aafbd8f5ddc5c;hp=c528dce2d12100b66d9dffd00093faefd33f5965;hb=653190bf2a1bed19e9a8dffc437084604261cc26;hpb=83e9df98a03d46c3d6b0074b51ea0971947cf058 diff --git a/notmuch.c b/notmuch.c index c528dce2..9580c3fe 100644 --- 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",