intel/tools/aubinator_error_decode: exit with an error on unknown option

Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7833>
This commit is contained in:
Marcin Ślusarz 2020-11-30 13:15:18 +01:00 committed by Marge Bot
parent f9e4c0ada1
commit 8ffa45a775
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}