summaryrefslogtreecommitdiff
path: root/usage.c
diff options
context:
space:
mode:
authorMatt Kraai2001-02-07 04:09:23 +0000
committerMatt Kraai2001-02-07 04:09:23 +0000
commit1d7026745028982980d17b1023c4ce8ec97ea946 (patch)
treee408c87ede7fc728458c316dfad2310fe68ddd3c /usage.c
parentdf8ccb635039a6bc8cfd51308b01cc0e58bbdc4d (diff)
downloadbusybox-1d7026745028982980d17b1023c4ce8ec97ea946.zip
busybox-1d7026745028982980d17b1023c4ce8ec97ea946.tar.gz
Add listening support.
Diffstat (limited to 'usage.c')
-rw-r--r--usage.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/usage.c b/usage.c
index 215871b..1686910 100644
--- a/usage.c
+++ b/usage.c
@@ -959,9 +959,13 @@ const char mv_usage[] =
#if defined BB_NC
const char nc_usage[] =
- "nc [IP] [port]"
+ "nc [-p PORT] IP PORT\n"
+ " or: nc -l -p PORT"
#ifndef BB_FEATURE_TRIVIAL_HELP
- "\n\nNetcat opens a pipe to IP:port"
+ "\n\nNetcat opens a pipe to IP:PORT\n"
+ "Options:\n"
+ "\t-l\tListen on the socket.\n"
+ "\t-p PORT\tBind the local port to PORT."
#endif
;
#endif