diff options
author | Pádraig Brady <P@draigBrady.com> | 2015-08-31 18:07:34 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2015-08-31 18:10:41 +0100 |
commit | a83f703a9bf9412417be94848a4ed7b7f1c1fc4a (patch) | |
tree | 9f874a30f8cd76221cf4c6bcd4c3fa94679e1748 | |
parent | fd5f2b1569e2e0b31be755e14e236a7a02478fc0 (diff) | |
download | coreutils-a83f703a9bf9412417be94848a4ed7b7f1c1fc4a.tar.xz |
doc: clarify in --help/man where short options take no param
* src/shred.c (usage): For -u, separate the decscription
of the short and long option, to clarify that the short option
takes no parameter.
* src/split.c (usage): Likewise for -d.
* src/tee.c (usage): Likewise for -p.
* src/uniq.c (usage): Likewise for -D.
Suggested by Stephane Chazelas
-rw-r--r-- | src/shred.c | 3 | ||||
-rw-r--r-- | src/split.c | 5 | ||||
-rw-r--r-- | src/tee.c | 3 | ||||
-rw-r--r-- | src/uniq.c | 7 |
4 files changed, 11 insertions, 7 deletions
diff --git a/src/shred.c b/src/shred.c index 52c93ef61..195b5d2eb 100644 --- a/src/shred.c +++ b/src/shred.c @@ -185,7 +185,8 @@ If FILE is -, shred standard output.\n\ -s, --size=N shred this many bytes (suffixes like K, M, G accepted)\n\ "), DEFAULT_PASSES); fputs (_("\ - -u, --remove[=HOW] truncate and remove file after overwriting; See below\n\ + -u truncate and remove file after overwriting\n\ + --remove[=HOW] like -u but give control on HOW to delete; See below\n\ -v, --verbose show progress\n\ -x, --exact do not round file sizes up to the next full block;\n\ this is the default for non-regular files\n\ diff --git a/src/split.c b/src/split.c index 35f2629ae..1e6bec61a 100644 --- a/src/split.c +++ b/src/split.c @@ -238,8 +238,9 @@ default size is 1000 lines, and default PREFIX is 'x'.\n\ --additional-suffix=SUFFIX append an additional SUFFIX to file names\n\ -b, --bytes=SIZE put SIZE bytes per output file\n\ -C, --line-bytes=SIZE put at most SIZE bytes of records per output file\n\ - -d, --numeric-suffixes[=FROM] use numeric suffixes instead of alphabetic;\n\ - FROM changes the start value (default 0)\n\ + -d use numeric suffixes starting at 0, not alphabetic\n\ + --numeric-suffixes[=FROM] same as -d, but allow setting the start value\ +\n\ -e, --elide-empty-files do not generate empty output files with '-n'\n\ --filter=COMMAND write to shell COMMAND; file name is $FILE\n\ -l, --lines=NUMBER put NUMBER lines/records per output file\n\ @@ -91,7 +91,8 @@ Copy standard input to each FILE, and also to standard output.\n\ -i, --ignore-interrupts ignore interrupt signals\n\ "), stdout); fputs (_("\ - -p, --output-error[=MODE] behavior on write error. See MODE details below\n\ + -p diagnose errors writing to non pipes\n\ + --output-error[=MODE] set behavior on write error. See MODE below\n\ "), stdout); fputs (HELP_OPTION_DESCRIPTION, stdout); fputs (VERSION_OPTION_DESCRIPTION, stdout); diff --git a/src/uniq.c b/src/uniq.c index e0cfe4ddc..8dfb7ea97 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -185,9 +185,10 @@ With no options, matching lines are merged to the first occurrence.\n\ -d, --repeated only print duplicate lines, one for each group\n\ "), stdout); fputs (_("\ - -D, --all-repeated[=METHOD] print all duplicate lines;\n\ - groups can be delimited with an empty line;\n\ - METHOD={none(default),prepend,separate}\n\ + -D print all duplicate lines\n\ + --all-repeated[=METHOD] like -D, but allow separating groups\n\ + with an empty line;\n\ + METHOD={none(default),prepend,separate}\n\ "), stdout); fputs (_("\ -f, --skip-fields=N avoid comparing the first N fields\n\ |