Skip to content

Commit

Permalink
app: fix usage help of options separated by dashes
Browse files Browse the repository at this point in the history
[ upstream commit a658775 ]

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: af75078 ("first public release")
Fixes: 26c057a ("acl: new test-acl application")
Fixes: b2854d5 ("app/pdump: support multi-core capture")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
  • Loading branch information
tmonjalo authored and kevintraynor committed May 27, 2020
1 parent b54911b commit eb70a61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/test-pmd/parameters.c
Expand Up @@ -52,7 +52,7 @@
static void
usage(char* progname)
{
printf("usage: %s "
printf("usage: %s [EAL options] -- "
#ifdef RTE_LIBRTE_CMDLINE
"[--interactive|-i] "
"[--cmdline-file=FILENAME] "
Expand Down
2 changes: 1 addition & 1 deletion test/test-acl/main.c
Expand Up @@ -11,7 +11,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

Expand Down

0 comments on commit eb70a61

Please sign in to comment.