diff options
author | Elliott Hughes <enh@google.com> | 2018-12-04 14:22:12 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-12-04 17:08:19 -0600 |
commit | 141a075c0e192dc9910e777270114b1864270bfd (patch) | |
tree | 2d62f0cedc34773310b23b3d8f55f577cbbaf9db /toys/posix/cp.c | |
parent | bcf244f3e6ff3c76536063bc5f7d684c6fd4e3fd (diff) | |
download | toybox-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/posix/cp.c')
-rw-r--r-- | toys/posix/cp.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/toys/posix/cp.c b/toys/posix/cp.c index 97cccb2f..0b1d0e49 100644 --- a/toys/posix/cp.c +++ b/toys/posix/cp.c @@ -28,22 +28,22 @@ config CP Copy files from SOURCE to DEST. If more than one SOURCE, DEST must be a directory. - -D create leading dirs under DEST (--parents) - -f delete destination files we can't write to - -F delete any existing destination file first (--remove-destination) - -i interactive, prompt before overwriting existing DEST - -p preserve timestamps, ownership, and mode - -R recurse into subdirectories (DEST must be a directory) + -D Create leading dirs under DEST (--parents) + -f Delete destination files we can't write to + -F Delete any existing destination file first (--remove-destination) + -i Interactive, prompt before overwriting existing DEST + -p Preserve timestamps, ownership, and mode + -R Recurse into subdirectories (DEST must be a directory) -H Follow symlinks listed on command line -L Follow all symlinks -P Do not follow symlinks [default] - -a same as -dpr - -d don't dereference symlinks - -l hard link instead of copy - -n no clobber (don't overwrite DEST) - -r synonym for -R - -s symlink instead of copy - -v verbose + -a Same as -dpr + -d Don't dereference symlinks + -l Hard link instead of copy + -n No clobber (don't overwrite DEST) + -r Synonym for -R + -s Symlink instead of copy + -v Verbose config CP_PRESERVE bool "cp --preserve support" @@ -68,10 +68,10 @@ config MV help usage: mv [-fivn] SOURCE... DEST" - -f force copy by deleting destination file - -i interactive, prompt before overwriting existing DEST - -v verbose - -n no clobber (don't overwrite DEST) + -f Force copy by deleting destination file + -i Interactive, prompt before overwriting existing DEST + -v Verbose + -n No clobber (don't overwrite DEST) config INSTALL bool "install" |