Module: Mesa Branch: master Commit: 8ffa45a775a6457dae85bd48bd3d424500fc55a9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ffa45a775a6457dae85bd48bd3d424500fc55a9
Author: Marcin Ślusarz <[email protected]> Date: Mon Nov 30 13:15:18 2020 +0100 intel/tools/aubinator_error_decode: exit with an error on unknown option Signed-off-by: Marcin Ślusarz <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7833> --- 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; } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
