common/cnxk: support NIX IRQ
[dpdk.git] / app / test-regex / main.c
index 82cffaa..8e665df 100644 (file)
@@ -159,12 +159,11 @@ args_parse(int argc, char **argv, char *rules_file, char *data_file,
                        *nb_segs = atoi(optarg);
                        break;
                case ARG_HELP:
-                       usage("RegEx test app");
+                       usage(argv[0]);
                        break;
                default:
-                       fprintf(stderr, "Invalid option: %s\n", argv[optind]);
-                       usage("RegEx test app");
-                       rte_exit(EXIT_FAILURE, "Invalid option\n");
+                       usage(argv[0]);
+                       rte_exit(EXIT_FAILURE, "Invalid option: %s\n", argv[optind]);
                        break;
                }
        }