From: Thomas Monjalon Date: Mon, 5 Apr 2021 19:33:24 +0000 (+0200) Subject: app/regex: fix usage text X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e0512833d4acc6d037fa0ce8d453584618b98019;p=dpdk.git app/regex: fix usage text The usage syntax help includes the program name which was fake. It is replaced with the real name from argv. Fixes: de06137cb295 ("app/regex: add RegEx test application") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon Acked-by: Ori Kam Acked-by: Bruce Richardson Acked-by: Andrew Rybchenko Acked-by: David Marchand --- diff --git a/app/test-regex/main.c b/app/test-regex/main.c index 18a22db533..8e665df73c 100644 --- a/app/test-regex/main.c +++ b/app/test-regex/main.c @@ -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; }