intel/tools/aubinator_error_decode: exit with an error on unknown option
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Mon, 30 Nov 2020 12:15:18 +0000 (13:15 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 1 Dec 2020 14:44:04 +0000 (14:44 +0000)
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>

src/intel/tools/aubinator_error_decode.c

index 6d9ead5..b7bdd88 100644 (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;
       }