From: Carl Worth Date: Sat, 31 Oct 2009 19:08:00 +0000 (-0700) Subject: notmuch: Reference help, don't print it for unknown commands. X-Git-Tag: 0.1~640 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=c37b1bdf2d871a11672772f83080f3ea9bda1b17;hp=acdc9988a2a502accad860a116b094b0a1f62008 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. --- diff --git a/notmuch.c b/notmuch.c index 7ee1d6bc..2465e16a 100644 --- a/notmuch.c +++ b/notmuch.c @@ -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; }