From f1f4d62f0b8112ca26934fe5f394932ed602cb0b Mon Sep 17 00:00:00 2001 From: Thomas Kupper Date: Sun, 9 Feb 2020 11:18:24 +0000 Subject: [PATCH] Handle case of invalid trace command line option - This fix came to light through issue #40 'remake -xn isn't the same as remake -nx' - Added a check for invalid tracing option (-x|--trace) --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index ee7f20abf..19edb322d 100644 --- a/main.c +++ b/main.c @@ -579,6 +579,8 @@ decode_trace_flags (stringlist_t *ppsz_tracing_opts) db_level = DB_BASIC | DB_TRACE; else if (0 == strcmp(*p, "read")) db_level |= DB_READ_MAKEFILES; + else + OS ( fatal, NILF, _("unknown trace command execution type `%s'"), *p); } } }