From 8093aa748761744e80b189871d4ad0ad94de33d9 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 28 Jan 2021 09:32:43 +0900 Subject: [PATCH] netcat: Fix the usage output --- netutils/netcat/netcat_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netutils/netcat/netcat_main.c b/netutils/netcat/netcat_main.c index a6d4073f2..116b2e8ae 100644 --- a/netutils/netcat/netcat_main.c +++ b/netutils/netcat/netcat_main.c @@ -215,7 +215,8 @@ int main(int argc, FAR char *argv[]) if (2 > argc) { fprintf(stderr, - "Usage: netcat [-l] [destination] [port] [file]\n"); + "Usage: netcat [port] [file]\n" + "Usage: netcat -l [port] [file]\n"); } else if ((1 < argc) && (0 == strcmp("-l", argv[1]))) {