netcat: Fix the usage output

This commit is contained in:
YAMAMOTO Takashi 2021-01-28 09:32:43 +09:00 committed by Xiang Xiao
parent bb620bb95c
commit 8093aa7487

View File

@ -215,7 +215,8 @@ int main(int argc, FAR char *argv[])
if (2 > argc) if (2 > argc)
{ {
fprintf(stderr, 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]))) else if ((1 < argc) && (0 == strcmp("-l", argv[1])))
{ {