projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acdc998
)
notmuch: Reference help, don't print it for unknown commands.
author
Carl Worth
<cworth@cworth.org>
Sat, 31 Oct 2009 19:08:00 +0000
(12:08 -0700)
committer
Carl Worth
<cworth@cworth.org>
Sat, 31 Oct 2009 19:08:00 +0000
(12:08 -0700)
The shorter output is much nicer for something that might end up
in an emacs mini-buffer, for example.
notmuch.c
patch
|
blob
|
history
diff --git
a/notmuch.c
b/notmuch.c
index 7ee1d6bc0d4aa3258a203fe56d5b720a7f752d25..2465e16a3da6c9b0fcf1801a2ba25861a03f5834 100644
(file)
--- 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;
}