aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/cut.c
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/posix/cut.c
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/posix/cut.c')
-rw-r--r--toys/posix/cut.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/toys/posix/cut.c b/toys/posix/cut.c
index 0b12ab14..9f7f7458 100644
--- a/toys/posix/cut.c
+++ b/toys/posix/cut.c
@@ -25,15 +25,15 @@ config CUT
from start). By default selection ranges are sorted and collated, use -D
to prevent that.
- -b select bytes
- -c select UTF-8 characters
- -C select unicode columns
- -d use DELIM (default is TAB for -f, run of whitespace for -F)
+ -b Select bytes
+ -c Select UTF-8 characters
+ -C Select unicode columns
+ -d Use DELIM (default is TAB for -f, run of whitespace for -F)
-D Don't sort/collate selections or match -fF lines without delimiter
- -f select fields (words) separated by single DELIM character
- -F select fields separated by DELIM regex
- -O output delimiter (default one space for -F, input delim for -f)
- -s skip lines without delimiters
+ -f Select fields (words) separated by single DELIM character
+ -F Select fields separated by DELIM regex
+ -O Output delimiter (default one space for -F, input delim for -f)
+ -s Skip lines without delimiters
*/
#define FOR_cut
#include "toys.h"