X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.c;h=9580c3fe1e062b4821b8bd10677aafbd8f5ddc5c;hp=c528dce2d12100b66d9dffd00093faefd33f5965;hb=af3eba97fde00d6bc922df87732b3d28f717f120;hpb=8cca886b10c5ec44f3214701c0c1e3c896d53d5c 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",