]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
doc: clarify in --help/man where short options take no param
authorPádraig Brady <P@draigBrady.com>
Mon, 31 Aug 2015 17:07:34 +0000 (18:07 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 31 Aug 2015 17:10:41 +0000 (18:10 +0100)
* 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

src/shred.c
src/split.c
src/tee.c
src/uniq.c

index 52c93ef61f1b5f1fdb72e6c9e1bd4d4adcb10098..195b5d2ebd157cd46b7b321d8118ec55f62b880a 100644 (file)
@@ -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\
index 35f2629ae5229a70e4b86eb12734d25d30b0e0d5..1e6bec61a354766696a23ef73af91e07bca458cd 100644 (file)
@@ -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\
index 3c39a4ab33bed4a23ce467004ca19d28883de24b..35120f89ce3e1273663e2119dd4a69f7cd6801f8 100644 (file)
--- a/src/tee.c
+++ b/src/tee.c
@@ -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);
index e0cfe4ddcab3c7f39eca10bf5165e5f4c14f966b..8dfb7ea9722ea958b972b508d6033d9f2a8ed5ce 100644 (file)
@@ -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\