aboutsummaryrefslogtreecommitdiff
path: root/toys/net
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-12-04 14:22:12 -0800
committerRob Landley <rob@landley.net>2018-12-04 17:08:19 -0600
commit141a075c0e192dc9910e777270114b1864270bfd (patch)
tree2d62f0cedc34773310b23b3d8f55f577cbbaf9db /toys/net
parentbcf244f3e6ff3c76536063bc5f7d684c6fd4e3fd (diff)
downloadtoybox-141a075c0e192dc9910e777270114b1864270bfd.tar.gz
Clean up some --help formatting.
Be consistent about upper versus lower case. (Upper seems to have the majority, so I went with that, though I'm happy to provide the opposite patch as long as we're consistent!) Be consistent about using \t. (Though saving a few bytes seems like it might be better done in the code that generates help.h rather than directly in the source, since tabs make careful ASCII art layout hard enough that we regularly have things misaligned.) Remove trailing periods (most of which seem to have been added by me). Always use the US "human readable" rather than my British "human-readable", and be more consistent about declaring whether we're showing multiples of 1000 or 1024. Just say "verbose" rather than adding a useless "mode" or "output".
Diffstat (limited to 'toys/net')
-rw-r--r--toys/net/microcom.c2
-rw-r--r--toys/net/netcat.c14
-rw-r--r--toys/net/netstat.c18
3 files changed, 17 insertions, 17 deletions
diff --git a/toys/net/microcom.c b/toys/net/microcom.c
index 7311e9d7..26ff2589 100644
--- a/toys/net/microcom.c
+++ b/toys/net/microcom.c
@@ -13,7 +13,7 @@ config MICROCOM
Simple serial console.
-s Set baud rate to SPEED
- -X Ignore ^@ (send break) and ^] (exit).
+ -X Ignore ^@ (send break) and ^] (exit)
*/
#define FOR_microcom
diff --git a/toys/net/netcat.c b/toys/net/netcat.c
index 54700c36..aa251b88 100644
--- a/toys/net/netcat.c
+++ b/toys/net/netcat.c
@@ -15,10 +15,10 @@ config NETCAT
help
usage: netcat [-u] [-wpq #] [-s addr] {IPADDR PORTNUM|-f FILENAME}
- -f use FILENAME (ala /dev/ttyS0) instead of network
- -p local port number
- -q quit SECONDS after EOF on stdin, even if stdout hasn't closed yet
- -s local source address
+ -f Use FILENAME (ala /dev/ttyS0) instead of network
+ -p Local port number
+ -q Quit SECONDS after EOF on stdin, even if stdout hasn't closed yet
+ -s Local source address
-w SECONDS timeout to establish connection
-W SECONDS timeout for more data on an idle connection
@@ -32,9 +32,9 @@ config NETCAT_LISTEN
help
usage: netcat [-t] [-lL COMMAND...]
- -l listen for one incoming connection
- -L listen for multiple incoming connections (server mode)
- -t allocate tty (must come before -l or -L)
+ -l Listen for one incoming connection
+ -L Listen for multiple incoming connections (server mode)
+ -t Allocate tty (must come before -l or -L)
The command line after -l or -L is executed (as a child process) to handle
each incoming connection. If blank -l waits for a connection and forwards
diff --git a/toys/net/netstat.c b/toys/net/netstat.c
index 7bebb327..45d688e3 100644
--- a/toys/net/netstat.c
+++ b/toys/net/netstat.c
@@ -14,17 +14,17 @@ config NETSTAT
Display networking information. Default is netsat -tuwx
- -r routing table
- -a all sockets (not just connected)
- -l listening server sockets
+ -r Routing table
+ -a All sockets (not just connected)
+ -l Listening server sockets
-t TCP sockets
-u UDP sockets
- -w raw sockets
- -x unix sockets
- -e extended info
- -n don't resolve names
- -W wide display
- -p show PID/program name of sockets
+ -w Raw sockets
+ -x Unix sockets
+ -e Extended info
+ -n Don't resolve names
+ -W Wide display
+ -p Show PID/program name of sockets
*/
#define FOR_netstat