examples/service_cores: fix lcore count check
[dpdk.git] / app / test-regex / main.c
index 18a22db..8e665df 100644 (file)
@@ -159,10 +159,10 @@ 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:
-                       usage("RegEx test app");
+                       usage(argv[0]);
                        rte_exit(EXIT_FAILURE, "Invalid option: %s\n", argv[optind]);
                        break;
                }