mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
notmuch: Reference help, don't print it for unknown commands.
The shorter output is much nicer for something that might end up in an emacs mini-buffer, for example.
This commit is contained in:
parent
acdc9988a2
commit
c37b1bdf2d
1 changed files with 2 additions and 2 deletions
|
@ -1450,8 +1450,8 @@ main (int argc, char *argv[])
|
|||
|
||||
/* Don't complain about "help" being an unknown command when we're
|
||||
about to provide exactly what's wanted anyway. */
|
||||
fprintf (stderr, "Error: Unknown command '%s'\n\n", argv[1]);
|
||||
usage ();
|
||||
fprintf (stderr, "Error: Unknown command '%s' (see \"notmuch help\")\n",
|
||||
argv[1]);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue