This functionality seems to have been undocumented, if it ever
existed. Document it now.
 
 Supported global options for ``notmuch`` include
 
-    ``--help``
+    ``--help`` [command-name]
        Print a synopsis of available commands and exit.
+       With an optional command name, show the man page
+       for that subcommand.
 
     ``--version``
        Print the installed version of notmuch, and exit.
 
        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",