From 8ffa45a775a6457dae85bd48bd3d424500fc55a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20=C5=9Alusarz?= Date: Mon, 30 Nov 2020 13:15:18 +0100 Subject: [PATCH] intel/tools/aubinator_error_decode: exit with an error on unknown option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Ĺšlusarz Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/tools/aubinator_error_decode.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/intel/tools/aubinator_error_decode.c b/src/intel/tools/aubinator_error_decode.c index 6d9ead5338e..b7bdd88de2f 100644 --- a/src/intel/tools/aubinator_error_decode.c +++ b/src/intel/tools/aubinator_error_decode.c @@ -783,6 +783,9 @@ main(int argc, char *argv[]) case 'x': xml_path = strdup(optarg); break; + case '?': + print_help(argv[0], stderr); + exit(EXIT_FAILURE); default: break; }