From 74f22a7d5cb6ed03f00c261fb4e28b411f1c4c0a Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 17 Oct 2018 16:21:37 -0700 Subject: Some more --help consistency. From eyeballing the output of for i in `./toybox | tr " " "\n"` ; do ./toybox $i --help ; done | \ grep '^-' | grep -v "\t" --- toys/other/blockdev.c | 5 ++--- toys/other/hwclock.c | 14 +++++++------- toys/other/pmap.c | 4 ++-- toys/other/shred.c | 14 +++++++------- 4 files changed, 18 insertions(+), 19 deletions(-) (limited to 'toys/other') diff --git a/toys/other/blockdev.c b/toys/other/blockdev.c index c2e10a22..75f71ad3 100644 --- a/toys/other/blockdev.c +++ b/toys/other/blockdev.c @@ -14,18 +14,17 @@ config BLOCKDEV Call ioctl(s) on each listed block device - OPTIONs: --setro Set read only --setrw Set read write --getro Get read only --getss Get sector size --getbsz Get block size - --setbsz BYTES Set block size + --setbsz BYTES Set block size --getsz Get device size in 512-byte sectors --getsize Get device size in sectors (deprecated) --getsize64 Get device size in bytes --getra Get readahead in 512-byte sectors - --setra Set readahead + --setra SECTORS Set readahead --flushbufs Flush buffers --rereadpt Reread partition table */ diff --git a/toys/other/hwclock.c b/toys/other/hwclock.c index 1d313e3b..81a29b77 100644 --- a/toys/other/hwclock.c +++ b/toys/other/hwclock.c @@ -12,13 +12,13 @@ config HWCLOCK help usage: hwclock [-rswtluf] - -f FILE Use specified device file instead of /dev/rtc (--rtc) - -l Hardware clock uses localtime (--localtime) - -r Show hardware clock time (--show) - -s Set system time from hardware clock (--hctosys) - -t Set the system time based on the current timezone (--systz) - -u Hardware clock uses UTC (--utc) - -w Set hardware clock from system time (--systohc) + -f FILE Use specified device file instead of /dev/rtc (--rtc) + -l Hardware clock uses localtime (--localtime) + -r Show hardware clock time (--show) + -s Set system time from hardware clock (--hctosys) + -t Set the system time based on the current timezone (--systz) + -u Hardware clock uses UTC (--utc) + -w Set hardware clock from system time (--systohc) */ #define FOR_hwclock diff --git a/toys/other/pmap.c b/toys/other/pmap.c index abb0a337..9b29bacd 100644 --- a/toys/other/pmap.c +++ b/toys/other/pmap.c @@ -15,8 +15,8 @@ config PMAP Reports the memory map of a process or processes. - -x Show the extended format - -q Do not display some header/footer lines + -x Show the extended format + -q Do not display some header/footer lines */ #define FOR_pmap diff --git a/toys/other/shred.c b/toys/other/shred.c index e10adc09..680320ec 100644 --- a/toys/other/shred.c +++ b/toys/other/shred.c @@ -14,13 +14,13 @@ config SHRED Securely delete a file by overwriting its contents with random data. - -f Force (chmod if necessary) - -n COUNT Random overwrite iterations (default 1) - -o OFFSET Start at OFFSET - -s SIZE Use SIZE instead of detecting file size - -u unlink (actually delete file when done) - -x Use exact size (default without -s rounds up to next 4k) - -z zero at end + -f Force (chmod if necessary) + -n COUNT Random overwrite iterations (default 1) + -o OFFSET Start at OFFSET + -s SIZE Use SIZE instead of detecting file size + -u Unlink (actually delete file when done) + -x Use exact size (default without -s rounds up to next 4k) + -z Zero at end Note: data journaling filesystems render this command useless, you must overwrite all free space (fill up disk) to erase old data on those. -- cgit v1.2.3