netcat: Fix the usage output
This commit is contained in:
parent
bb620bb95c
commit
8093aa7487
@ -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])))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user