From e3e3cc28a626112d39fbd6d9b6bb12925746e2e9 Mon Sep 17 00:00:00 2001 From: Zhe Weng Date: Thu, 6 Apr 2023 12:07:49 +0800 Subject: [PATCH] netutils/iperf: Use argtable's builtin glossary to print usage Argtable's builtin glossary can produce same output and we do not need to maintain two sets of help string. Then we're easier to add more options to iperf. Signed-off-by: Zhe Weng --- netutils/iperf/iperf_main.c | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/netutils/iperf/iperf_main.c b/netutils/iperf/iperf_main.c index 1b29b77bc..f7ceb9610 100644 --- a/netutils/iperf/iperf_main.c +++ b/netutils/iperf/iperf_main.c @@ -75,22 +75,15 @@ struct wifi_iperf_t * ****************************************************************************/ -static void iperf_showusage(FAR const char *progname, int exitcode) +static void iperf_showusage(FAR const char *progname, + FAR struct wifi_iperf_t *args, int exitcode) { - printf("USAGE: %s [-sua] [-c ] [-p ]\ - [-i ] [-t