Mesa (master): intel/tools/aubinator_error_decode: exit with an error on unknown option

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Dec 1 14:55:05 UTC 2020


Module: Mesa
Branch: master
Commit: 8ffa45a775a6457dae85bd48bd3d424500fc55a9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ffa45a775a6457dae85bd48bd3d424500fc55a9

Author: Marcin Ślusarz <marcin.slusarz at intel.com>
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 <marcin.slusarz at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
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;
       }



More information about the mesa-commit mailing list