mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
cli: enable notmuch --help command
This functionality seems to have been undocumented, if it ever existed. Document it now.
This commit is contained in:
parent
83e9df98a0
commit
653190bf2a
2 changed files with 5 additions and 3 deletions
|
@ -39,8 +39,10 @@ OPTIONS
|
|||
|
||||
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.
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue