summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2012-01-30 11:59:04 +0000
committerPádraig Brady <P@draigBrady.com>2012-01-31 12:53:45 +0000
commit02551d8a62d84b8788a8793de121c2f1e5212d63 (patch)
tree3dfac9aa790454ceaae2794954fc5aeb932324a0 /src
parent447b5d9320e22eed51cd64b8de766ccb1686f230 (diff)
downloadcoreutils-02551d8a62d84b8788a8793de121c2f1e5212d63.tar.xz
doc: clarify --help output for some optional arguments
* src/pr.c (usage): Fix the -S description to indicate that the argument is optional for the short option. * doc/coreutils.texi (pr invocation): Likewise. * src/od.c (usage): Fix the -S description to indicate that the argument is required for the short option. Clarify -w takes an argument and that it is optional.
Diffstat (limited to 'src')
-rw-r--r--src/od.c4
-rw-r--r--src/pr.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/od.c b/src/od.c
index 2da282511..759379692 100644
--- a/src/od.c
+++ b/src/od.c
@@ -313,10 +313,10 @@ All arguments to long options are mandatory for short options.\n\
"), stdout);
fputs (_("\
-N, --read-bytes=BYTES limit dump to BYTES input bytes\n\
- -S, --strings[=BYTES] output strings of at least BYTES graphic chars\n\
+ -S BYTES, --strings[=BYTES] output strings of at least BYTES graphic chars\n\
-t, --format=TYPE select output format or formats\n\
-v, --output-duplicates do not use * to mark line suppression\n\
- -w, --width[=BYTES] output BYTES bytes per output line\n\
+ -w[BYTES], --width[=BYTES] output BYTES bytes per output line\n\
--traditional accept arguments in traditional form\n\
"), stdout);
fputs (HELP_OPTION_DESCRIPTION, stdout);
diff --git a/src/pr.c b/src/pr.c
index 4f949de24..f1e310f90 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -250,7 +250,7 @@
compliant formulation. The source code translates -s into
the new options -S and -J, also -W if required.
- -S STRING, --sep-string[=STRING]
+ -S[STRING], --sep-string[=STRING]
Separate columns by any string STRING. The -S option
doesn't react upon the -W/-w option (unlike -s option
does). It defines a separator nothing else.
@@ -2842,7 +2842,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\
options (-COLUMN|-a -COLUMN|-m) except -w is set\n\
"), stdout);
fputs (_("\
- -SSTRING, --sep-string[=STRING]\n\
+ -S[STRING], --sep-string[=STRING]\n\
separate columns by STRING,\n\
without -S: Default separator <TAB> with -J and <space>\n\
otherwise (same as -S\" \"), no effect on column options\n\