Skip to contentSkip to conversation

app: fix usage help of options separated by dashes

PATCH Applied Thomas Monjalon 3 participants 4 messages Apr 20, 2020 – Apr 25, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 app: fix usage help of options separated by dashes

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")
---
 app/pdump/main.c          | 2 +-
 app/test-acl/main.c       | 2 +-
 app/test-pmd/parameters.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
app/pdump/main.c +1 -1
index d05a023667..c38c53719e 100644
@@ -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>),"
app/test-acl/main.c +1 -1
index 4bc00272f4..0a5dfb621d 100644
@@ -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
 
app/test-pmd/parameters.c +1 -1
index 404dba2b20..30c1753c32 100644
@@ -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] "
Signature · 1 line
2.26.0
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Thomas Monjalon

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.

Quoted 8 lines
Fixes af75078fece3 ("first public release")
Fixes 26c057ab6c45 ("acl: new test-acl application")
Fixes b2854d5317e8 ("app/pdump: support multi-core capture")

---

Acked-by on v1 1/1
#2 lore raw
In reply to Thomas Monjalon
Quoted 7 lines · Thomas Monjalon

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.

Quoted 8 lines
Fixes af75078fece3 ("first public release")
Fixes 26c057ab6c45 ("acl: new test-acl application")
Fixes b2854d5317e8 ("app/pdump: support multi-core capture")

---

Acked-by Bruce Richardson on v1 1/1 Applied
#3 lore raw
In reply to Thomas Monjalon
Quoted 8 lines · Thomas Monjalon

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.

Quoted 6 lines
Fixes af75078fece3 ("first public release")
Fixes 26c057ab6c45 ("acl: new test-acl application")
Fixes b2854d5317e8 ("app/pdump: support multi-core capture")

Applied, thanks.

Signature · 1 line
David Marchand