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:
Carl Worth 2009-10-31 12:08:00 -07:00
parent acdc9988a2
commit c37b1bdf2d

View file

@ -1450,8 +1450,8 @@ main (int argc, char *argv[])
/* Don't complain about "help" being an unknown command when we're /* Don't complain about "help" being an unknown command when we're
about to provide exactly what's wanted anyway. */ about to provide exactly what's wanted anyway. */
fprintf (stderr, "Error: Unknown command '%s'\n\n", argv[1]); fprintf (stderr, "Error: Unknown command '%s' (see \"notmuch help\")\n",
usage (); argv[1]);
return 1; return 1;
} }