Re: [PATCH 12/12] examples/dma: replace getopt with argparse

2024-01-24 Thread Thomas Monjalon
22/01/2024 04:58, Chengwen Feng: > -#define CMD_LINE_OPT_MAC_UPDATING "mac-updating" > -#define CMD_LINE_OPT_NO_MAC_UPDATING "no-mac-updating" > -#define CMD_LINE_OPT_PORTMASK "portmask" > -#define CMD_LINE_OPT_NB_QUEUE "nb-queue" > -#define CMD_LINE_OPT_COPY_TYPE "copy-type" > -#define CMD_LINE_OP

[PATCH 12/12] examples/dma: replace getopt with argparse

2024-01-21 Thread Chengwen Feng
Replace getopt with argparse. Signed-off-by: Chengwen Feng --- examples/dma/dmafwd.c| 279 ++- examples/dma/meson.build | 2 +- 2 files changed, 127 insertions(+), 154 deletions(-) diff --git a/examples/dma/dmafwd.c b/examples/dma/dmafwd.c index f27317a