aboutsummaryrefslogtreecommitdiff
path: root/toys/lsb
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/lsb
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/lsb')
-rw-r--r--toys/lsb/dmesg.c2
-rw-r--r--toys/lsb/hostname.c10
-rw-r--r--toys/lsb/killall.c10
-rw-r--r--toys/lsb/md5sum.c4
-rw-r--r--toys/lsb/mount.c14
-rw-r--r--toys/lsb/pidof.c4
-rw-r--r--toys/lsb/su.c8
-rw-r--r--toys/lsb/umount.c8
8 files changed, 30 insertions, 30 deletions
diff --git a/toys/lsb/dmesg.c b/toys/lsb/dmesg.c
index 42f642ce..a55dabf5 100644
--- a/toys/lsb/dmesg.c
+++ b/toys/lsb/dmesg.c
@@ -24,7 +24,7 @@ config DMESG
-r Raw output (with <level markers>)
-S Use syslog(2) rather than /dev/kmsg
-s Show the last SIZE many bytes
- -T Show human-readable timestamps
+ -T Human readable timestamps
-t Don't print timestamps
-w Keep waiting for more output (aka --follow)
*/
diff --git a/toys/lsb/hostname.c b/toys/lsb/hostname.c
index 4b9347dd..c9fafa54 100644
--- a/toys/lsb/hostname.c
+++ b/toys/lsb/hostname.c
@@ -14,11 +14,11 @@ config HOSTNAME
Get/set the current hostname.
- -b set hostname to 'localhost' if otherwise unset
- -d show DNS domain name (no host)
- -f show fully-qualified name (host+domain, FQDN)
- -F set hostname to contents of FILENAME
- -s show short host name (no domain)
+ -b Set hostname to 'localhost' if otherwise unset
+ -d Show DNS domain name (no host)
+ -f Show fully-qualified name (host+domain, FQDN)
+ -F Set hostname to contents of FILENAME
+ -s Show short host name (no domain)
*/
#define FOR_hostname
diff --git a/toys/lsb/killall.c b/toys/lsb/killall.c
index d524107c..8870618b 100644
--- a/toys/lsb/killall.c
+++ b/toys/lsb/killall.c
@@ -14,11 +14,11 @@ config KILLALL
Send a signal (default: TERM) to all processes with the given names.
- -i ask for confirmation before killing
- -l print list of all available signals
- -q don't print any warnings or error messages
- -s send SIGNAL instead of SIGTERM
- -v report if the signal was successfully sent
+ -i Ask for confirmation before killing
+ -l Print list of all available signals
+ -q Don't print any warnings or error messages
+ -s Send SIGNAL instead of SIGTERM
+ -v Report if the signal was successfully sent
*/
#define FOR_killall
diff --git a/toys/lsb/md5sum.c b/toys/lsb/md5sum.c
index fbad784a..80f45a0e 100644
--- a/toys/lsb/md5sum.c
+++ b/toys/lsb/md5sum.c
@@ -29,7 +29,7 @@ config MD5SUM
Calculate md5 hash for each input file, reading from stdin if none.
Output one hash (32 hex digits) for each input file, followed by filename.
- -b brief (hash only, no filename)
+ -b Brief (hash only, no filename)
-c Check each line of FILE is the same hash+filename we'd output
config SHA1SUM
@@ -42,7 +42,7 @@ config SHA1SUM
one hash (40 hex digits for sha1, 56 for sha224, 64 for sha256, 96 for sha384,
and 128 for sha512) for each input file, followed by filename.
- -b brief (hash only, no filename)
+ -b Brief (hash only, no filename)
-c Check each line of FILE is the same hash+filename we'd output
config SHA224SUM
diff --git a/toys/lsb/mount.c b/toys/lsb/mount.c
index 0fd9dc52..5d0aca33 100644
--- a/toys/lsb/mount.c
+++ b/toys/lsb/mount.c
@@ -19,13 +19,13 @@ config MOUNT
Mount new filesystem(s) on directories. With no arguments, display existing
mounts.
- -a mount all entries in /etc/fstab (with -t, only entries of that TYPE)
- -O only mount -a entries that have this option
- -f fake it (don't actually mount)
- -r read only (same as -o ro)
- -w read/write (default, same as -o rw)
- -t specify filesystem type
- -v verbose
+ -a Mount all entries in /etc/fstab (with -t, only entries of that TYPE)
+ -O Only mount -a entries that have this option
+ -f Fake it (don't actually mount)
+ -r Read only (same as -o ro)
+ -w Read/write (default, same as -o rw)
+ -t Specify filesystem type
+ -v Verbose
OPTIONS is a comma separated list of options, which can also be supplied
as --longopts.
diff --git a/toys/lsb/pidof.c b/toys/lsb/pidof.c
index 40e732b5..4f266b84 100644
--- a/toys/lsb/pidof.c
+++ b/toys/lsb/pidof.c
@@ -15,8 +15,8 @@ config PIDOF
Print the PIDs of all processes with the given names.
- -s single shot, only return one pid
- -o omit PID(s)
+ -s Single shot, only return one pid
+ -o Omit PID(s)
*/
#define FOR_pidof
diff --git a/toys/lsb/su.c b/toys/lsb/su.c
index 7ab24876..0bffe782 100644
--- a/toys/lsb/su.c
+++ b/toys/lsb/su.c
@@ -16,10 +16,10 @@ config SU
Switch to user (or root) and run shell (with optional command line).
- -s shell to use
- -c command to pass to shell with -c
- -l login shell
- -(m|p) preserve environment
+ -s Shell to use
+ -c Command to pass to shell with -c
+ -l Login shell
+ -(m|p) Preserve environment
*/
#define FOR_su
diff --git a/toys/lsb/umount.c b/toys/lsb/umount.c
index d67d41fb..3c9e3ca1 100644
--- a/toys/lsb/umount.c
+++ b/toys/lsb/umount.c
@@ -19,11 +19,11 @@ config UMOUNT
Unmount the listed filesystems.
-a Unmount all mounts in /proc/mounts instead of command line list
- -D Don't free loopback device(s)
- -f Force unmount
- -l Lazy unmount (detach from filesystem now, close when last user does)
+ -D Don't free loopback device(s)
+ -f Force unmount
+ -l Lazy unmount (detach from filesystem now, close when last user does)
-n Don't use /proc/mounts
- -r Remount read only if unmounting fails
+ -r Remount read only if unmounting fails
-t Restrict "all" to mounts of TYPE (or use "noTYPE" to skip)
-v Verbose
*/