From bf174187d0f6a7957908ab94983f0699e7d356e2 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 6 Jun 2006 13:35:25 +0200 Subject: [PATCH] Improve error reporting for unknown options It will now also show usage help. --- tig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.30.2