You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/01/28 09:18:58 UTC

[incubator-nuttx-apps] 01/03: netcat: Fix the usage output

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git

commit 8093aa748761744e80b189871d4ad0ad94de33d9
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Thu Jan 28 09:32:43 2021 +0900

    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 a6d4073..116b2e8 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 <destination> [port] [file]\n"
+              "Usage: netcat -l [port] [file]\n");
     }
   else if ((1 < argc) && (0 == strcmp("-l", argv[1])))
     {