From: Jonas Fonseca Date: Tue, 6 Jun 2006 11:35:25 +0000 (+0200) Subject: Improve error reporting for unknown options X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bf174187d0f6a7957908ab94983f0699e7d356e2;p=tig.git Improve error reporting for unknown options It will now also show usage help. --- diff --git a/tig.c b/tig.c index 1f36682..b827a92 100644 --- a/tig.c +++ b/tig.c @@ -418,7 +418,7 @@ parse_options(int argc, char *argv[]) if (opt[0] && opt[0] != '-') break; - die("unknown command '%s'", opt); + die("unknown option '%s'\n\n%s", opt, usage); } if (!isatty(STDIN_FILENO)) {