app: fix usage help of options separated by dashes
authorThomas Monjalon <thomas@monjalon.net>
Mon, 20 Apr 2020 23:25:31 +0000 (01:25 +0200)
committerDavid Marchand <david.marchand@redhat.com>
Sat, 25 Apr 2020 19:56:18 +0000 (21:56 +0200)
The EAL options and app-specific options are separated
with double dashes.

The help of testpmd, test-acl and pdump were missing
the dashes after EAL options.
Note: testpmd was completely missing the EAL options.

Fixes: af75078fece3 ("first public release")
Fixes: 26c057ab6c45 ("acl: new test-acl application")
Fixes: b2854d5317e8 ("app/pdump: support multi-core capture")
Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
app/pdump/main.c
app/test-acl/main.c
app/test-pmd/parameters.c

index d05a023..c38c537 100644 (file)
@@ -151,7 +151,7 @@ static uint8_t multiple_core_capture;
 static void
 pdump_usage(const char *prgname)
 {
-       printf("usage: %s [EAL options]"
+       printf("usage: %s [EAL options] --"
                        " --["CMD_LINE_OPT_MULTI"]\n"
                        " --"CMD_LINE_OPT_PDUMP" "
                        "'(port=<port id> | device_id=<pci id or vdev name>),"
index 4bc0027..0a5dfb6 100644 (file)
@@ -12,7 +12,7 @@
 #include <rte_lcore.h>
 #include <rte_ip.h>
 
-#define        PRINT_USAGE_START       "%s [EAL options]\n"
+#define        PRINT_USAGE_START       "%s [EAL options] --\n"
 
 #define        RTE_LOGTYPE_TESTACL     RTE_LOGTYPE_USER1
 
index 404dba2..30c1753 100644 (file)
@@ -49,7 +49,7 @@
 static void
 usage(char* progname)
 {
-       printf("usage: %s "
+       printf("usage: %s [EAL options] -- "
 #ifdef RTE_LIBRTE_CMDLINE
               "[--interactive|-i] "
               "[--cmdline-file=FILENAME] "