summaryrefslogtreecommitdiffstats
path: root/notmuch.c
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2015-06-15 17:46:44 +0200
committerDavid Bremner <david@tethera.net>2015-07-30 07:45:26 +0200
commit653190bf2a1bed19e9a8dffc437084604261cc26 (patch)
tree77f6ffdc450662abf9aabb083cfc5a2be132cae0 /notmuch.c
parent83e9df98a03d46c3d6b0074b51ea0971947cf058 (diff)
cli: enable notmuch --help command
This functionality seems to have been undocumented, if it ever existed. Document it now.
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c4
1 files changed, 2 insertions, 2 deletions
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",