From: Pádraig Brady
Date: Thu, 1 Jan 2026 16:31:44 +0000 (+0000)
Subject: doc: all: use option highlighting and more standard alignment
X-Git-Tag: v9.10~53
X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2dad24adc0fb4f89002d95a26c8ae7b6fd1daf95;p=thirdparty%2Fcoreutils.git
doc: all: use option highlighting and more standard alignment
Adjust all utils to:
- Have a separate translation per option
- Use either oputs() or oprintf(), instead of fputs() or printf().
- Use more standard alignment as discussed in previous commits.
- Various tweaks to descriptions.
---
diff --git a/src/basename.c b/src/basename.c
index dff06fef15..777ee9867e 100644
--- a/src/basename.c
+++ b/src/basename.c
@@ -56,13 +56,20 @@ If specified, also remove a trailing SUFFIX.\n\
emit_mandatory_arg_note ();
- fputs (_("\
- -a, --multiple support multiple arguments and treat each as a NAME\n\
- -s, --suffix=SUFFIX remove a trailing SUFFIX; implies -a\n\
- -z, --zero end each output line with NUL, not newline\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -a, --multiple\n\
+ support multiple arguments and treat each as a NAME\n\
+"));
+ oputs (_("\
+ -s, --suffix=SUFFIX\n\
+ remove a trailing SUFFIX; implies -a\n\
+"));
+ oputs (_("\
+ -z, --zero\n\
+ end each output line with NUL, not newline\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
printf (_("\
\n\
Examples:\n\
diff --git a/src/basenc.c b/src/basenc.c
index 1804fc83fa..4e0eb92fb4 100644
--- a/src/basenc.c
+++ b/src/basenc.c
@@ -117,46 +117,62 @@ Base%d encode or decode FILE, or standard input, to standard output.\n\
emit_stdin_note ();
emit_mandatory_arg_note ();
#if BASE_TYPE == 42
- fputs (_("\
- --base64 same as 'base64' program (RFC4648 section 4)\n\
-"), stdout);
- fputs (_("\
- --base64url file- and url-safe base64 (RFC4648 section 5)\n\
-"), stdout);
- fputs (_("\
- --base58 visually unambiguous base58 encoding\n\
-"), stdout);
- fputs (_("\
- --base32 same as 'base32' program (RFC4648 section 6)\n\
-"), stdout);
- fputs (_("\
- --base32hex extended hex alphabet base32 (RFC4648 section 7)\n\
-"), stdout);
- fputs (_("\
- --base16 hex encoding (RFC4648 section 8)\n\
-"), stdout);
- fputs (_("\
- --base2msbf bit string with most significant bit (msb) first\n\
-"), stdout);
- fputs (_("\
- --base2lsbf bit string with least significant bit (lsb) first\n\
-"), stdout);
+ oputs (_("\
+ --base64\n\
+ same as 'base64' program (RFC4648 section 4)\n\
+"));
+ oputs (_("\
+ --base64url\n\
+ file- and url-safe base64 (RFC4648 section 5)\n\
+"));
+ oputs (_("\
+ --base58\n\
+ visually unambiguous base58 encoding\n\
+"));
+ oputs (_("\
+ --base32\n\
+ same as 'base32' program (RFC4648 section 6)\n\
+"));
+ oputs (_("\
+ --base32hex\n\
+ extended hex alphabet base32 (RFC4648 section 7)\n\
+"));
+ oputs (_("\
+ --base16\n\
+ hex encoding (RFC4648 section 8)\n\
+"));
+ oputs (_("\
+ --base2msbf\n\
+ bit string with most significant bit (msb) first\n\
+"));
+ oputs (_("\
+ --base2lsbf\n\
+ bit string with least significant bit (lsb) first\n\
+"));
#endif
- fputs (_("\
- -d, --decode decode data\n\
- -i, --ignore-garbage when decoding, ignore non-alphabet characters\n\
- -w, --wrap=COLS wrap encoded lines after COLS character (default 76).\n\
- Use 0 to disable line wrapping\n\
-"), stdout);
+ oputs (_("\
+ -d, --decode\n\
+ decode data\n\
+"));
+ oputs (_("\
+ -i, --ignore-garbage\n\
+ when decoding, ignore non-alphabet characters\n\
+"));
+ oputs (_("\
+ -w, --wrap=COLS\n\
+ wrap encoded lines after COLS character (default 76).\n\
+ Use 0 to disable line wrapping\n\
+"));
#if BASE_TYPE == 42
- fputs (_("\
- --z85 ascii85-like encoding (ZeroMQ spec:32/Z85);\n\
- when encoding, input length must be a multiple of 4;\n\
- when decoding, input length must be a multiple of 5\n\
-"), stdout);
+ oputs (_("\
+ --z85\n\
+ ascii85-like encoding (ZeroMQ spec:32/Z85);\n\
+ when encoding, input length must be a multiple of 4;\n\
+ when decoding, input length must be a multiple of 5\n\
+"));
#endif
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
#if BASE_TYPE == 42
fputs (_("\
\n\
diff --git a/src/cat.c b/src/cat.c
index 6c37b9a982..f9c92005c8 100644
--- a/src/cat.c
+++ b/src/cat.c
@@ -96,23 +96,38 @@ Concatenate FILE(s) to standard output.\n\
emit_stdin_note ();
- fputs (_("\
-\n\
+ oputs (_("\
-A, --show-all equivalent to -vET\n\
+"));
+ oputs (_("\
-b, --number-nonblank number nonempty output lines, overrides -n\n\
+"));
+ oputs (_("\
-e equivalent to -vE\n\
+"));
+ oputs (_("\
-E, --show-ends display $ or ^M$ at end of each line\n\
+"));
+ oputs (_("\
-n, --number number all output lines\n\
+"));
+ oputs (_("\
-s, --squeeze-blank suppress repeated empty output lines\n\
-"), stdout);
- fputs (_("\
+"));
+ oputs (_("\
-t equivalent to -vT\n\
+"));
+ oputs (_("\
-T, --show-tabs display TAB characters as ^I\n\
+"));
+ oputs (_("\
-u (ignored)\n\
+"));
+ oputs (_("\
-v, --show-nonprinting use ^ and M- notation, except for LFD and TAB\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
printf (_("\
\n\
Examples:\n\
diff --git a/src/chcon.c b/src/chcon.c
index 1f0ecdb754..91b78148d0 100644
--- a/src/chcon.c
+++ b/src/chcon.c
@@ -364,34 +364,54 @@ With --reference, change the security context of each FILE to that of RFILE.\n\
emit_mandatory_arg_note ();
- fputs (_("\
- --dereference affect the referent of each symbolic link (this is\n\
- the default), rather than the symbolic link itself\n\
- -h, --no-dereference affect symbolic links instead of any referenced file\n\
-"), stdout);
- fputs (_("\
- -u, --user=USER set user USER in the target security context\n\
- -r, --role=ROLE set role ROLE in the target security context\n\
- -t, --type=TYPE set type TYPE in the target security context\n\
- -l, --range=RANGE set range RANGE in the target security context\n\
-"), stdout);
- fputs (_("\
- --no-preserve-root do not treat '/' specially (the default)\n\
- --preserve-root fail to operate recursively on '/'\n\
-"), stdout);
- fputs (_("\
- --reference=RFILE use RFILE's security context rather than specifying\n\
- a CONTEXT value\n\
-"), stdout);
- fputs (_("\
- -R, --recursive operate on files and directories recursively\n\
-"), stdout);
- fputs (_("\
- -v, --verbose output a diagnostic for every file processed\n\
-"), stdout);
+ oputs (_("\
+ --dereference\n\
+ affect the referent of each symbolic link (this is\n\
+ the default), rather than the symbolic link itself\n\
+"));
+ oputs (_("\
+ -h, --no-dereference\n\
+ affect symbolic links instead of any referenced file\n\
+"));
+ oputs (_("\
+ -u, --user=USER\n\
+ set user USER in the target security context\n\
+"));
+ oputs (_("\
+ -r, --role=ROLE\n\
+ set role ROLE in the target security context\n\
+"));
+ oputs (_("\
+ -t, --type=TYPE\n\
+ set type TYPE in the target security context\n\
+"));
+ oputs (_("\
+ -l, --range=RANGE\n\
+ set range RANGE in the target security context\n\
+"));
+ oputs (_("\
+ --no-preserve-root\n\
+ do not treat '/' specially (the default)\n\
+"));
+ oputs (_("\
+ --preserve-root\n\
+ fail to operate recursively on '/'\n\
+"));
+ oputs (_("\
+ --reference=RFILE\n\
+ use RFILE's security context rather than specifying a CONTEXT value\n\
+"));
+ oputs (_("\
+ -R, --recursive\n\
+ operate on files and directories recursively\n\
+"));
+ oputs (_("\
+ -v, --verbose\n\
+ output a diagnostic for every file processed\n\
+"));
emit_symlink_recurse_options ("-P");
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_ancillary_info (PROGRAM_NAME);
}
exit (status);
diff --git a/src/chmod.c b/src/chmod.c
index 1e52dc3df6..6dd9f0b06c 100644
--- a/src/chmod.c
+++ b/src/chmod.c
@@ -421,30 +421,47 @@ Change the mode of each FILE to MODE.\n\
With --reference, change the mode of each FILE to that of RFILE.\n\
\n\
"), stdout);
- fputs (_("\
- -c, --changes like verbose but report only when a change is made\n\
- -f, --silent, --quiet suppress most error messages\n\
- -v, --verbose output a diagnostic for every file processed\n\
-"), stdout);
- fputs (_("\
- --dereference affect the referent of each symbolic link,\n\
- rather than the symbolic link itself\n\
- -h, --no-dereference affect each symbolic link, rather than the referent\n\
-"), stdout);
- fputs (_("\
- --no-preserve-root do not treat '/' specially (the default)\n\
- --preserve-root fail to operate recursively on '/'\n\
-"), stdout);
- fputs (_("\
- --reference=RFILE use RFILE's mode instead of specifying MODE values.\n\
- RFILE is always dereferenced if a symbolic link.\n\
-"), stdout);
- fputs (_("\
- -R, --recursive change files and directories recursively\n\
-"), stdout);
+ oputs (_("\
+ -c, --changes\n\
+ like verbose but report only when a change is made\n\
+"));
+ oputs (_("\
+ -f, --silent, --quiet\n\
+ suppress most error messages\n\
+"));
+ oputs (_("\
+ -v, --verbose\n\
+ output a diagnostic for every file processed\n\
+"));
+ oputs (_("\
+ --dereference\n\
+ affect the referent of each symbolic link,\n\
+ rather than the symbolic link itself\n\
+"));
+ oputs (_("\
+ -h, --no-dereference\n\
+ affect each symbolic link, rather than the referent\n\
+"));
+ oputs (_("\
+ --no-preserve-root\n\
+ do not treat '/' specially (the default)\n\
+"));
+ oputs (_("\
+ --preserve-root\n\
+ fail to operate recursively on '/'\n\
+"));
+ oputs (_("\
+ --reference=RFILE\n\
+ use RFILE's mode instead of specifying MODE values.\n\
+ RFILE is always dereferenced if a symbolic link.\n\
+"));
+ oputs (_("\
+ -R, --recursive\n\
+ change files and directories recursively\n\
+"));
emit_symlink_recurse_options ("-H");
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
Each MODE is of the form '[ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=][0-7]+'.\n\
diff --git a/src/chown.c b/src/chown.c
index e9f3919e88..5f9997d680 100644
--- a/src/chown.c
+++ b/src/chown.c
@@ -95,41 +95,55 @@ Change the group of each FILE to GROUP.\n\
With --reference, change the group of each FILE to that of RFILE.\n\
\n\
"), stdout);
- fputs (_("\
- -c, --changes like verbose but report only when a change is made\n\
- -f, --silent, --quiet suppress most error messages\n\
- -v, --verbose output a diagnostic for every file processed\n\
-"), stdout);
- fputs (_("\
- --dereference affect the referent of each symbolic link (this is\n\
- the default), rather than the symbolic link itself\n\
- -h, --no-dereference affect symbolic links instead of any referenced file\n\
-"), stdout);
- fputs (_("\
- (useful only on systems that can change the\n\
- ownership of a symlink)\n\
-"), stdout);
- fputs (_("\
+ oputs (_("\
+ -c, --changes\n\
+ like verbose but report only when a change is made\n\
+"));
+ oputs (_("\
+ -f, --silent, --quiet\n\
+ suppress most error messages\n\
+"));
+ oputs (_("\
+ -v, --verbose\n\
+ output a diagnostic for every file processed\n\
+"));
+ oputs (_("\
+ --dereference\n\
+ affect the referent of each symbolic link (this is\n\
+ the default), rather than the symbolic link itself\n\
+"));
+ oputs (_("\
+ -h, --no-dereference\n\
+ affect symbolic links instead of any referenced file;\n\
+ useful only on systems that can change the ownership of a symlink\n\
+"));
+ oputs (_("\
--from=CURRENT_OWNER:CURRENT_GROUP\n\
- change the ownership of each file only if\n\
- its current owner and/or group match those specified\n\
- here. Either may be omitted, in which case a match\n\
- is not required for the omitted attribute\n\
-"), stdout);
- fputs (_("\
- --no-preserve-root do not treat '/' specially (the default)\n\
- --preserve-root fail to operate recursively on '/'\n\
-"), stdout);
- fputs (_("\
- --reference=RFILE use RFILE's ownership rather than specifying values.\n\
- RFILE is always dereferenced if a symbolic link.\n\
-"), stdout);
- fputs (_("\
- -R, --recursive operate on files and directories recursively\n\
-"), stdout);
+ change the ownership of each file only if its\n\
+ current owner and/or group match those specified here.\n\
+ Either may be omitted, in which case a match\n\
+ is not required for the omitted attribute\n\
+"));
+ oputs (_("\
+ --no-preserve-root\n\
+ do not treat '/' specially (the default)\n\
+"));
+ oputs (_("\
+ --preserve-root\n\
+ fail to operate recursively on '/'\n\
+"));
+ oputs (_("\
+ --reference=RFILE\n\
+ use RFILE's ownership rather than specifying values.\n\
+ RFILE is always dereferenced if a symbolic link.\n\
+"));
+ oputs (_("\
+ -R, --recursive\n\
+ operate on files and directories recursively\n\
+"));
emit_symlink_recurse_options ("-P");
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
if (chown_mode == CHOWN_CHOWN)
fputs (_("\
\n\
diff --git a/src/chroot.c b/src/chroot.c
index 48ef38d73c..9a52625594 100644
--- a/src/chroot.c
+++ b/src/chroot.c
@@ -190,18 +190,21 @@ Run COMMAND with root directory set to NEWROOT.\n\
\n\
"), stdout);
- fputs (_("\
- --groups=G_LIST specify supplementary groups as g1,g2,..,gN\n\
-"), stdout);
- fputs (_("\
- --userspec=USER:GROUP specify user and group (ID or name) to use\n\
-"), stdout);
- printf (_("\
- --skip-chdir do not change working directory to %s\n\
+ oputs (_("\
+ --groups=G_LIST\n\
+ specify supplementary groups as g1,g2,..,gN\n\
+"));
+ oputs (_("\
+ --userspec=USER:GROUP\n\
+ specify user and group (ID or name) to use\n\
+"));
+ oprintf (_("\
+ --skip-chdir\n\
+ do not change working directory to %s\n\
"), quoteaf ("/"));
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
If no command is given, run '\"$SHELL\" -i' (default: '/bin/sh -i').\n\
diff --git a/src/cksum.c b/src/cksum.c
index 3abc71dcad..bab319bdbe 100644
--- a/src/cksum.c
+++ b/src/cksum.c
@@ -523,26 +523,29 @@ Legacy interface to the cksum utility.\n\
emit_stdin_note ();
#if HASH_ALGO_SUM
- fputs (_("\
-\n\
- -r use BSD sum algorithm (the default), use 1K blocks\n\
- -s, --sysv use System V sum algorithm, use 512 bytes blocks\n\
-"), stdout);
+ oputs (_("\
+ -r\n\
+ use BSD sum algorithm (the default), use 1K blocks\n\
+"));
+ oputs (_("\
+ -s, --sysv\n\
+ use System V sum algorithm, use 512 bytes blocks\n\
+"));
#endif
#if HASH_ALGO_BLAKE2 || HASH_ALGO_CKSUM
emit_mandatory_arg_note ();
#endif
#if HASH_ALGO_CKSUM
if (! legacy_mode)
- fputs (_("\
- -a, --algorithm=TYPE select the digest type to use. See DIGEST below\
-\n\
-"), stdout);
+ oputs (_("\
+ -a, --algorithm=TYPE\n\
+ select the digest type to use. See DIGEST below\n\
+"));
if (! legacy_mode)
- fputs (_("\
- --base64 emit base64-encoded digests, not hexadecimal\
-\n\
-"), stdout);
+ oputs (_("\
+ --base64\n\
+ emit base64-encoded digests, not hexadecimal\n\
+"));
#endif
#if !HASH_ALGO_SUM
# if HASH_ALGO_CKSUM
@@ -550,91 +553,116 @@ Legacy interface to the cksum utility.\n\
{
# endif
if (O_BINARY)
- fputs (_("\
- -b, --binary read in binary mode (default unless reading tty stdin)\
-\n\
-"), stdout);
+ oputs (_("\
+ -b, --binary\n\
+ read in binary mode (default unless reading tty stdin)\n\
+"));
else
- fputs (_("\
- -b, --binary read in binary mode\n\
-"), stdout);
+ oputs (_("\
+ -b, --binary\n\
+ read in binary mode\n\
+"));
# if HASH_ALGO_CKSUM
}
# endif
- fputs (_("\
- -c, --check read checksums from the FILEs and check them\n\
-"), stdout);
+ oputs (_("\
+ -c, --check\n\
+ read checksums from the FILEs and check them\n\
+"));
# if HASH_ALGO_BLAKE2 || HASH_ALGO_CKSUM
# if HASH_ALGO_CKSUM
if (! legacy_mode)
# endif
- fputs (_("\
- -l, --length=BITS digest length in bits; must not exceed the max size\n\
- and must be a multiple of 8 for blake2b;\n\
- must be 224, 256, 384, or 512 for sha2 or sha3\n\
-"), stdout);
+ oputs (_("\
+ -l, --length=BITS\n\
+ digest length in bits; must not exceed the max size\n\
+ and must be a multiple of 8 for blake2b;\n\
+ must be 224, 256, 384, or 512 for sha2 or sha3\n\
+"));
# endif
# if HASH_ALGO_CKSUM
if (! legacy_mode)
- fputs (_("\
- --raw emit a raw binary digest, not hexadecimal\
-\n\
-"), stdout);
+ oputs (_("\
+ --raw\n\
+ emit a raw binary digest, not hexadecimal\n\
+"));
if (legacy_mode)
- fputs (_("\
- --tag create a BSD-style checksum\n\
-"), stdout);
+ oputs (_("\
+ --tag\n\
+ create a BSD-style checksum\n\
+"));
else
- fputs (_("\
- --tag create a BSD-style checksum (the default)\n\
-"), stdout);
+ oputs (_("\
+ --tag\n\
+ create a BSD-style checksum (the default)\n\
+"));
if (! legacy_mode)
- fputs (_("\
- --untagged create a reversed style checksum, without digest type\n\
-"), stdout);
+ oputs (_("\
+ --untagged\n\
+ create a reversed style checksum, without digest type\n\
+"));
# else
- fputs (_("\
- --tag create a BSD-style checksum\n\
-"), stdout);
+ oputs (_("\
+ --tag\n\
+ create a BSD-style checksum\n\
+"));
# endif
# if HASH_ALGO_CKSUM
if (legacy_mode)
{
# endif
if (O_BINARY)
- fputs (_("\
- -t, --text read in text mode (default if reading tty stdin)\n\
-"), stdout);
+ oputs (_("\
+ -t, --text\n\
+ read in text mode (default if reading tty stdin)\n\
+"));
else
- fputs (_("\
- -t, --text read in text mode (default)\n\
-"), stdout);
+ oputs (_("\
+ -t, --text\n\
+ read in text mode (default)\n\
+"));
# if HASH_ALGO_CKSUM
}
# endif
- fputs (_("\
- -z, --zero end each output line with NUL, not newline,\n\
- and disable file name escaping\n\
-"), stdout);
+ oputs (_("\
+ -z, --zero\n\
+ end each output line with NUL, not newline,\n\
+ and disable file name escaping\n\
+"));
fputs (_("\
\n\
The following five options are useful only when verifying checksums:\n\
- --ignore-missing don't fail or report status for missing files\n\
- --quiet don't print OK for each successfully verified file\n\
- --status don't output anything, status code shows success\n\
- --strict exit non-zero for improperly formatted checksum lines\n\
- -w, --warn warn about improperly formatted checksum lines\n\
-\n\
"), stdout);
+ oputs (_("\
+ --ignore-missing\n\
+ don't fail or report status for missing files\n\
+"));
+ oputs (_("\
+ --quiet\n\
+ don't print OK for each successfully verified file\n\
+"));
+ oputs (_("\
+ --status\n\
+ don't output anything, status code shows success\n\
+"));
+ oputs (_("\
+ --strict\n\
+ exit non-zero for improperly formatted checksum lines\n\
+"));
+ oputs (_("\
+ -w, --warn\n\
+ warn about improperly formatted checksum lines\n\
+"));
#endif
#if HASH_ALGO_CKSUM
if (! legacy_mode)
- fputs (_("\
- --debug indicate which implementation used\n\
-"), stdout);
+ oputs (_("\
+ --debug\n\
+ indicate which implementation used\n\
+"));
#endif
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
#if HASH_ALGO_CKSUM
if (! legacy_mode)
fputs (_("\
diff --git a/src/comm.c b/src/comm.c
index a73020061d..87cd65eb5b 100644
--- a/src/comm.c
+++ b/src/comm.c
@@ -120,29 +120,38 @@ With no options, produce three-column output. Column one contains\n\
lines unique to FILE1, column two contains lines unique to FILE2,\n\
and column three contains lines common to both files.\n\
"), stdout);
- fputs (_("\
-\n\
- -1 suppress column 1 (lines unique to FILE1)\n\
- -2 suppress column 2 (lines unique to FILE2)\n\
- -3 suppress column 3 (lines that appear in both files)\n\
-"), stdout);
- fputs (_("\
-\n\
- --check-order check that the input is correctly sorted, even\n\
- if all input lines are pairable\n\
- --nocheck-order do not check that the input is correctly sorted\n\
-"), stdout);
- fputs (_("\
- --output-delimiter=STR separate columns with STR\n\
-"), stdout);
- fputs (_("\
- --total output a summary\n\
-"), stdout);
- fputs (_("\
- -z, --zero-terminated line delimiter is NUL, not newline\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -1 suppress column 1 (lines unique to FILE1)\n\
+"));
+ oputs (_("\
+ -2 suppress column 2 (lines unique to FILE2)\n\
+"));
+ oputs (_("\
+ -3 suppress column 3 (lines that appear in both files)\n\
+"));
+ oputs (_("\
+ --check-order\n\
+ check that the input is correctly sorted,\n\
+ even if all input lines are pairable\n\
+"));
+ oputs (_("\
+ --nocheck-order\n\
+ do not check that the input is correctly sorted\n\
+"));
+ oputs (_("\
+ --output-delimiter=STR\n\
+ separate columns with STR\n\
+"));
+ oputs (_("\
+ --total\n\
+ output a summary\n\
+"));
+ oputs (_("\
+ -z, --zero-terminated\n\
+ line delimiter is NUL, not newline\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
Comparisons honor the rules specified by 'LC_COLLATE'.\n\
diff --git a/src/coreutils.c b/src/coreutils.c
index 5ff5c3d4cb..180bfd9cee 100644
--- a/src/coreutils.c
+++ b/src/coreutils.c
@@ -66,8 +66,8 @@ Usage: %s --coreutils-prog=PROGRAM_NAME [PARAMETERS]... \n"),
fputs (_("\
Execute the PROGRAM_NAME built-in program with the given PARAMETERS.\n\
\n"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
#ifdef SINGLE_BINARY
/* XXX: Ideally we'd like to present "install" here, not "ginstall". */
diff --git a/src/cp.c b/src/cp.c
index bc43850a67..278f7cd345 100644
--- a/src/cp.c
+++ b/src/cp.c
@@ -169,85 +169,148 @@ Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.\n\
emit_mandatory_arg_note ();
- fputs (_("\
- -a, --archive same as -dR --preserve=all\n\
- --attributes-only don't copy the file data, just the attributes\n\
- --backup[=CONTROL] make a backup of each existing destination file\
-\n\
- -b like --backup but does not accept an argument\n\
- --copy-contents copy contents of special files when recursive\n\
- -d same as --no-dereference --preserve=links\n\
-"), stdout);
- fputs (_("\
- --debug explain how a file is copied. Implies -v\n\
-"), stdout);
- fputs (_("\
- -f, --force if an existing destination file cannot be\n\
- opened, remove it and try again (this option\n\
- is ignored when the -n option is also used)\n\
- -i, --interactive prompt before overwrite (overrides a previous -n\
-\n\
- option)\n\
- -H follow command-line symbolic links in SOURCE\n\
-"), stdout);
- fputs (_("\
- -l, --link hard link files instead of copying\n\
- -L, --dereference always follow symbolic links in SOURCE\n\
-"), stdout);
- fputs (_("\
- -n, --no-clobber (deprecated) silently skip existing files.\n\
- See also --update\n\
-"), stdout);
- fputs (_("\
- -P, --no-dereference never follow symbolic links in SOURCE\n\
-"), stdout);
- fputs (_("\
- -p same as --preserve=mode,ownership,timestamps\n\
- --preserve[=ATTR_LIST] preserve the specified attributes\n\
-"), stdout);
- fputs (_("\
- --no-preserve=ATTR_LIST don't preserve the specified attributes\n\
- --parents use full source file name under DIRECTORY\n\
-"), stdout);
- fputs (_("\
- -R, -r, --recursive copy directories recursively\n\
- --reflink[=WHEN] control clone/CoW copies. See below\n\
- --remove-destination remove each existing destination file before\n\
- attempting to open it (contrast with --force)\
-\n"), stdout);
- fputs (_("\
- --sparse=WHEN control creation of sparse files. See below\n\
- --strip-trailing-slashes remove any trailing slashes from each SOURCE\n\
- argument\n\
-"), stdout);
- fputs (_("\
- -s, --symbolic-link make symbolic links instead of copying\n\
- -S, --suffix=SUFFIX override the usual backup suffix\n\
- -t, --target-directory=DIRECTORY copy all SOURCE arguments into DIRECTORY\n\
- -T, --no-target-directory treat DEST as a normal file\n\
-"), stdout);
- fputs (_("\
- --update[=UPDATE] control which existing files are updated;\n\
- UPDATE={all,none,none-fail,older(default)}\n\
- -u equivalent to --update[=older]. See below\n\
-"), stdout);
- fputs (_("\
- -v, --verbose explain what is being done\n\
-"), stdout);
- fputs (_("\
- --keep-directory-symlink follow existing symlinks to directories\n\
-"), stdout);
- fputs (_("\
- -x, --one-file-system stay on this file system\n\
-"), stdout);
- fputs (_("\
- -Z set SELinux security context of destination\n\
- file to default type\n\
- --context[=CTX] like -Z, or if CTX is specified then set the\n\
- SELinux or SMACK security context to CTX\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -a, --archive\n\
+ same as -dR --preserve=all\n\
+"));
+ oputs (_("\
+ --attributes-only\n\
+ don't copy the file data, just the attributes\n\
+"));
+ oputs (_("\
+ --backup[=CONTROL]\n\
+ make a backup of each existing destination file\n\
+"));
+ oputs (_("\
+ -b\n\
+ like --backup but does not accept an argument\n\
+"));
+ oputs (_("\
+ --copy-contents\n\
+ copy contents of special files when recursive\n\
+"));
+ oputs (_("\
+ -d\n\
+ same as --no-dereference --preserve=links\n\
+"));
+ oputs (_("\
+ --debug\n\
+ explain how a file is copied. Implies -v\n\
+"));
+ oputs (_("\
+ -f, --force\n\
+ if an existing destination file cannot be opened, remove it and try\n\
+ again (this option is ignored when the -n option is also used)\n\
+"));
+ oputs (_("\
+ -i, --interactive\n\
+ prompt before overwrite (overrides a previous -n option)\n\
+"));
+ oputs (_("\
+ -H\n\
+ follow command-line symbolic links in SOURCE\n\
+"));
+ oputs (_("\
+ -l, --link\n\
+ hard link files instead of copying\n\
+"));
+ oputs (_("\
+ -L, --dereference\n\
+ always follow symbolic links in SOURCE\n\
+"));
+ oputs (_("\
+ -n, --no-clobber\n\
+ (deprecated) silently skip existing files. See also --update\n\
+"));
+ oputs (_("\
+ -P, --no-dereference\n\
+ never follow symbolic links in SOURCE\n\
+"));
+ oputs (_("\
+ -p\n\
+ same as --preserve=mode,ownership,timestamps\n\
+"));
+ oputs (_("\
+ --preserve[=ATTR_LIST]\n\
+ preserve the specified attributes\n\
+"));
+ oputs (_("\
+ --no-preserve=ATTR_LIST\n\
+ don't preserve the specified attributes\n\
+"));
+ oputs (_("\
+ --parents\n\
+ use full source file name under DIRECTORY\n\
+"));
+ oputs (_("\
+ -R, -r, --recursive\n\
+ copy directories recursively\n\
+"));
+ oputs (_("\
+ --reflink[=WHEN]\n\
+ control clone/CoW copies. See below\n\
+"));
+ oputs (_("\
+ --remove-destination\n\
+ remove each existing destination file before attempting to open it\n\
+ (contrast with --force)\n\
+"));
+ oputs (_("\
+ --sparse=WHEN\n\
+ control creation of sparse files. See below\n\
+"));
+ oputs (_("\
+ --strip-trailing-slashes\n\
+ remove any trailing slashes from each SOURCE argument\n\
+"));
+ oputs (_("\
+ -s, --symbolic-link\n\
+ make symbolic links instead of copying\n\
+"));
+ oputs (_("\
+ -S, --suffix=SUFFIX\n\
+ override the usual backup suffix\n\
+"));
+ oputs (_("\
+ -t, --target-directory=DIRECTORY\n\
+ copy all SOURCE arguments into DIRECTORY\n\
+"));
+ oputs (_("\
+ -T, --no-target-directory\n\
+ treat DEST as a normal file\n\
+"));
+ oputs (_("\
+ --update[=UPDATE]\n\
+ control which existing files are updated;\n\
+ UPDATE={all,none,none-fail,older(default)}\n\
+"));
+ oputs (_("\
+ -u\n\
+ equivalent to --update[=older]. See below\n\
+"));
+ oputs (_("\
+ -v, --verbose\n\
+ explain what is being done\n\
+"));
+ oputs (_("\
+ --keep-directory-symlink\n\
+ follow existing symlinks to directories\n\
+"));
+ oputs (_("\
+ -x, --one-file-system\n\
+ stay on this file system\n\
+"));
+ oputs (_("\
+ -Z\n\
+ set SELinux security context of destination file to default type\n\
+"));
+ oputs (_("\
+ --context[=CTX]\n\
+ like -Z, or if CTX is specified then set the\n\
+ SELinux or SMACK security context to CTX\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
ATTR_LIST is a comma-separated list of attributes. Attributes are 'mode' for\n\
diff --git a/src/csplit.c b/src/csplit.c
index 2fdc5e819f..1f0253c3c1 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -1419,21 +1419,36 @@ Read standard input if FILE is -\n\
emit_mandatory_arg_note ();
- fputs (_("\
- -b, --suffix-format=FORMAT use sprintf FORMAT instead of %02d\n\
- -f, --prefix=PREFIX use PREFIX instead of 'xx'\n\
- -k, --keep-files do not remove output files on errors\n\
-"), stdout);
- fputs (_("\
- --suppress-matched suppress the lines matching PATTERN\n\
-"), stdout);
- fputs (_("\
- -n, --digits=DIGITS use specified number of digits instead of 2\n\
- -s, --quiet, --silent do not print counts of output file sizes\n\
- -z, --elide-empty-files suppress empty output files\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -b, --suffix-format=FORMAT\n\
+ use sprintf FORMAT instead of %02d\n\
+"));
+ oputs (_("\
+ -f, --prefix=PREFIX\n\
+ use PREFIX instead of 'xx'\n\
+"));
+ oputs (_("\
+ -k, --keep-files\n\
+ do not remove output files on errors\n\
+"));
+ oputs (_("\
+ --suppress-matched\n\
+ suppress the lines matching PATTERN\n\
+"));
+ oputs (_("\
+ -n, --digits=DIGITS\n\
+ use specified number of digits instead of 2\n\
+"));
+ oputs (_("\
+ -s, --quiet, --silent\n\
+ do not print counts of output file sizes\n\
+"));
+ oputs (_("\
+ -z, --elide-empty-files\n\
+ suppress empty output files\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
Each PATTERN may be:\n\
diff --git a/src/cut.c b/src/cut.c
index a045e6b8ea..93f2b1f1f5 100644
--- a/src/cut.c
+++ b/src/cut.c
@@ -139,31 +139,46 @@ Print selected parts of lines from each FILE to standard output.\n\
emit_stdin_note ();
emit_mandatory_arg_note ();
- fputs (_("\
- -b, --bytes=LIST select only these bytes\n\
- -c, --characters=LIST select only these characters\n\
- -d, --delimiter=DELIM use DELIM instead of TAB for field delimiter\n\
-"), stdout);
- fputs (_("\
- -f, --fields=LIST select only these fields; also print any line\n\
- that contains no delimiter character, unless\n\
- the -s option is specified\n\
- -n (ignored)\n\
-"), stdout);
- fputs (_("\
- --complement complement the set of selected bytes, characters\n\
- or fields\n\
-"), stdout);
- fputs (_("\
- -s, --only-delimited do not print lines not containing delimiters\n\
- --output-delimiter=STRING use STRING as the output delimiter\n\
- the default is to use the input delimiter\n\
-"), stdout);
- fputs (_("\
- -z, --zero-terminated line delimiter is NUL, not newline\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -b, --bytes=LIST\n\
+ select only these bytes\n\
+"));
+ oputs (_("\
+ -c, --characters=LIST\n\
+ select only these characters\n\
+"));
+ oputs (_("\
+ -d, --delimiter=DELIM\n\
+ use DELIM instead of TAB for field delimiter\n\
+"));
+ oputs (_("\
+ -f, --fields=LIST\n\
+ select only these fields; also print any line that contains\n\
+ no delimiter character, unless the -s option is specified\n\
+"));
+ oputs (_("\
+ -n\n\
+ (ignored)\n\
+"));
+ oputs (_("\
+ --complement\n\
+ complement the set of selected bytes, characters or fields\n\
+"));
+ oputs (_("\
+ -s, --only-delimited\n\
+ do not print lines not containing delimiters\n\
+"));
+ oputs (_("\
+ --output-delimiter=STRING\n\
+ use STRING as the output delimiter;\n\
+ the default is to use the input delimiter\n\
+"));
+ oputs (_("\
+ -z, --zero-terminated\n\
+ line delimiter is NUL, not newline\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
Use one, and only one of -b, -c or -f. Each LIST is made up of one\n\
diff --git a/src/date.c b/src/date.c
index 9a05cbc2eb..36c863a422 100644
--- a/src/date.c
+++ b/src/date.c
@@ -138,48 +138,58 @@ With -s, or with [MMDDhhmm[[CC]YY][.ss]], set the date and time.\n\
emit_mandatory_arg_note ();
- fputs (_("\
- -d, --date=STRING display time described by STRING, not 'now'\n\
-"), stdout);
- fputs (_("\
- --debug annotate the parsed date, and\n\
- warn about questionable usage to standard error\n\
-"), stdout);
- fputs (_("\
- -f, --file=DATEFILE like --date; once for each line of DATEFILE;\n\
- If DATEFILE is -, read names from standard input\
-\n\
-"), stdout);
- fputs (_("\
- -I[FMT], --iso-8601[=FMT] output date/time in ISO 8601 format.\n\
- FMT='date' for date only (the default),\n\
- 'hours', 'minutes', 'seconds', or 'ns'\n\
- for date and time to the indicated precision.\n\
- Example: 2006-08-14T02:34:56-06:00\n\
-"), stdout);
- fputs (_("\
- --resolution output the available resolution of timestamps\n\
- Example: 0.000000001\n\
-"), stdout);
- fputs (_("\
- -R, --rfc-email output date and time in RFC 5322 format.\n\
- Example: Mon, 14 Aug 2006 02:34:56 -0600\n\
-"), stdout);
- fputs (_("\
- --rfc-3339=FMT output date/time in RFC 3339 format.\n\
- FMT='date', 'seconds', or 'ns'\n\
- for date and time to the indicated precision.\n\
- Example: 2006-08-14 02:34:56-06:00\n\
-"), stdout);
- fputs (_("\
- -r, --reference=FILE display the last modification time of FILE\n\
-"), stdout);
- fputs (_("\
- -s, --set=STRING set time described by STRING\n\
- -u, --utc, --universal print or set Coordinated Universal Time (UTC)\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -d, --date=STRING\n\
+ display time described by STRING, not 'now'\n\
+"));
+ oputs (_("\
+ --debug\n\
+ annotate the parsed date,\n\
+ and warn about questionable usage to standard error\n\
+"));
+ oputs (_("\
+ -f, --file=DATEFILE\n\
+ like --date; once for each line of DATEFILE;\n\
+ if DATEFILE is -, read names from standard input\n\
+"));
+ oputs (_("\
+ -I[FMT], --iso-8601[=FMT]\n\
+ output date/time in ISO 8601 format.\n\
+ FMT='date' (default), 'hours', 'minutes', 'seconds', or 'ns'\n\
+ for date and time to the indicated precision.\n\
+ Example: 2006-08-14T02:34:56-06:00\n\
+"));
+ oputs (_("\
+ --resolution\n\
+ output the available resolution of timestamps.\n\
+ Example: 0.000000001\n\
+"));
+ oputs (_("\
+ -R, --rfc-email\n\
+ output date and time in RFC 5322 format.\n\
+ Example: Mon, 14 Aug 2006 02:34:56 +0000\n\
+"));
+ oputs (_("\
+ --rfc-3339=FMT\n\
+ output date/time in RFC 3339 format.\n\
+ FMT='date', 'seconds', or 'ns'\n\
+ for date and time to the indicated precision.\n\
+ Example: 2006-08-14 02:34:56-06:00\n\
+"));
+ oputs (_("\
+ -r, --reference=FILE\n\
+ display the last modification time of FILE\n\
+"));
+ oputs (_("\
+ -s, --set=STRING\n\
+ set time described by STRING\n\
+"));
+ oputs (_("\
+ -u, --utc, --universal\n\
+ print or set Coordinated Universal Time (UTC)\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
All options that specify the date to display are mutually exclusive.\n\
diff --git a/src/dd.c b/src/dd.c
index ff3d420500..a1944fbc05 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -531,26 +531,50 @@ Usage: %s [OPERAND]...\n\
fputs (_("\
Copy a file, converting and formatting according to the operands.\n\
\n\
+"), stdout);
+ oputs (_("\
bs=BYTES read and write up to BYTES bytes at a time (default: 512);\n\
overrides ibs and obs\n\
+"));
+ oputs (_("\
cbs=BYTES convert BYTES bytes at a time\n\
+"));
+ oputs (_("\
conv=CONVS convert the file as per the comma separated symbol list\n\
+"));
+ oputs (_("\
count=N copy only N input blocks\n\
+"));
+ oputs (_("\
ibs=BYTES read up to BYTES bytes at a time (default: 512)\n\
-"), stdout);
- fputs (_("\
+"));
+ oputs (_("\
if=FILE read from FILE instead of standard input\n\
+"));
+ oputs (_("\
iflag=FLAGS read as per the comma separated symbol list\n\
+"));
+ oputs (_("\
obs=BYTES write BYTES bytes at a time (default: 512)\n\
+"));
+ oputs (_("\
of=FILE write to FILE instead of standard output\n\
+"));
+ oputs (_("\
oflag=FLAGS write as per the comma separated symbol list\n\
- seek=N (or oseek=N) skip N obs-sized output blocks\n\
- skip=N (or iseek=N) skip N ibs-sized input blocks\n\
+"));
+ oputs (_("\
+ seek=N (or oseek=N) skip N obs sized output blocks\n\
+"));
+ oputs (_("\
+ skip=N (or iseek=N) skip N ibs sized input blocks\n\
+"));
+ oputs (_("\
status=LEVEL The LEVEL of information to print to standard error;\n\
'none' suppresses everything but error messages,\n\
'noxfer' suppresses the final transfer statistics,\n\
'progress' shows periodic transfer statistics\n\
-"), stdout);
+"));
fputs (_("\
\n\
N and BYTES may be followed by the following multiplicative suffixes:\n\
@@ -632,8 +656,8 @@ Options are:\n\
"), SIGINFO == SIGUSR1 ? "USR1" : "INFO");
}
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_ancillary_info (PROGRAM_NAME);
}
exit (status);
diff --git a/src/df.c b/src/df.c
index ae30660ff3..25235a2372 100644
--- a/src/df.c
+++ b/src/df.c
@@ -1502,43 +1502,75 @@ or all file systems by default.\n\
/* TRANSLATORS: The thousands and decimal separators are best
adjusted to an appropriate default for your locale. */
- fputs (_("\
- -a, --all include pseudo, duplicate, inaccessible file systems\n\
- -B, --block-size=SIZE scale sizes by SIZE before printing them; e.g.,\n\
- '-BM' prints sizes in units of 1,048,576 bytes;\n\
- see SIZE format below\n\
- -h, --human-readable print sizes in powers of 1024 (e.g., 1023M)\n\
- -H, --si print sizes in powers of 1000 (e.g., 1.1G)\n\
-"), stdout);
- fputs (_("\
- -i, --inodes list inode information instead of block usage\n\
- -k like --block-size=1K\n\
- -l, --local limit listing to local file systems\n\
- --no-sync do not invoke sync before getting usage info (default)\
-\n\
-"), stdout);
- fputs (_("\
- --output[=FIELD_LIST] use the output format defined by FIELD_LIST,\n\
- or print all fields if FIELD_LIST is omitted\n\
-"), stdout);
- fputs (_("\
- -P, --portability use the POSIX output format\n\
-"), stdout);
- fputs (_("\
- --sync invoke sync before getting usage info\n\
-"), stdout);
- fputs (_("\
- --total elide all entries insignificant to available space,\n\
- and produce a grand total\n\
-"), stdout);
- fputs (_("\
- -t, --type=TYPE limit listing to file systems of type TYPE\n\
- -T, --print-type print file system type\n\
- -x, --exclude-type=TYPE limit listing to file systems not of type TYPE\n\
- -v (ignored)\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -a, --all\n\
+ include pseudo, duplicate, inaccessible file systems\n\
+"));
+ oputs (_("\
+ -B, --block-size=SIZE\n\
+ scale sizes by SIZE before printing them; see SIZE format below;\n\
+ E.g., '-BM' prints sizes in units of 1,048,576 bytes\n\
+"));
+ oputs (_("\
+ -h, --human-readable\n\
+ print sizes in powers of 1024 (e.g., 1023M)\n\
+"));
+ oputs (_("\
+ -H, --si\n\
+ print sizes in powers of 1000 (e.g., 1.1G)\n\
+"));
+ oputs (_("\
+ -i, --inodes\n\
+ list inode information instead of block usage\n\
+"));
+ oputs (_("\
+ -k\n\
+ like --block-size=1K\n\
+"));
+ oputs (_("\
+ -l, --local\n\
+ limit listing to local file systems\n\
+"));
+ oputs (_("\
+ --no-sync\n\
+ do not invoke sync before getting usage info (default)\n\
+"));
+ oputs (_("\
+ --output[=FIELD_LIST]\n\
+ use the output format defined by FIELD_LIST,\n\
+ or print all fields if FIELD_LIST is omitted\n\
+"));
+ oputs (_("\
+ -P, --portability\n\
+ use the POSIX output format\n\
+"));
+ oputs (_("\
+ --sync\n\
+ invoke sync before getting usage info\n\
+"));
+ oputs (_("\
+ --total\n\
+ elide all entries insignificant to available space,\n\
+ and produce a grand total\n\
+"));
+ oputs (_("\
+ -t, --type=TYPE\n\
+ limit listing to file systems of type TYPE\n\
+"));
+ oputs (_("\
+ -T, --print-type\n\
+ print file system type\n\
+"));
+ oputs (_("\
+ -x, --exclude-type=TYPE\n\
+ limit listing to file systems not of type TYPE\n\
+"));
+ oputs (_("\
+ -v\n\
+ (ignored)\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_blocksize_note ("DF");
emit_size_note ();
fputs (_("\n\
diff --git a/src/dircolors.c b/src/dircolors.c
index b601fadaf1..bd7706f05c 100644
--- a/src/dircolors.c
+++ b/src/dircolors.c
@@ -104,13 +104,25 @@ usage (int status)
Output commands to set the LS_COLORS environment variable.\n\
\n\
Determine format of output:\n\
- -b, --sh, --bourne-shell output Bourne shell code to set LS_COLORS\n\
- -c, --csh, --c-shell output C shell code to set LS_COLORS\n\
- -p, --print-database output defaults\n\
- --print-ls-colors output fully escaped colors for display\n\
"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -b, --sh, --bourne-shell\n\
+ output Bourne shell code to set LS_COLORS\n\
+"));
+ oputs (_("\
+ -c, --csh, --c-shell\n\
+ output C shell code to set LS_COLORS\n\
+"));
+ oputs (_("\
+ -p, --print-database\n\
+ output defaults\n\
+"));
+ oputs (_("\
+ --print-ls-colors\n\
+ output fully escaped colors for display\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
If FILE is specified, read it to determine which colors to use for which\n\
diff --git a/src/dirname.c b/src/dirname.c
index 603ae820bd..dbd21d683e 100644
--- a/src/dirname.c
+++ b/src/dirname.c
@@ -55,11 +55,12 @@ Output each NAME with its last non-slash component and trailing slashes\n\
removed; if NAME contains no /'s, output '.' (meaning the current directory).\n\
\n\
"), stdout);
- fputs (_("\
- -z, --zero end each output line with NUL, not newline\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -z, --zero\n\
+ end each output line with NUL, not newline\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
printf (_("\
\n\
Examples:\n\
diff --git a/src/du.c b/src/du.c
index 6a943682d3..8243ef1ac5 100644
--- a/src/du.c
+++ b/src/du.c
@@ -286,67 +286,126 @@ Summarize device usage of the set of FILEs, recursively for directories.\n\
emit_mandatory_arg_note ();
- fputs (_("\
- -0, --null end each output line with NUL, not newline\n\
- -a, --all write counts for all files, not just directories\n\
- -A, --apparent-size print apparent sizes rather than device usage; although\
-\n\
- the apparent size is usually smaller, it may be\n\
- larger due to holes in ('sparse') files, internal\n\
- fragmentation, indirect blocks, and the like\n\
-"), stdout);
- fputs (_("\
- -B, --block-size=SIZE scale sizes by SIZE before printing them; e.g.,\n\
- '-BM' prints sizes in units of 1,048,576 bytes;\n\
- see SIZE format below\n\
- -b, --bytes equivalent to '--apparent-size --block-size=1'\n\
- -c, --total produce a grand total\n\
- -D, --dereference-args dereference only symlinks that are listed on the\n\
- command line\n\
- -d, --max-depth=N print the total for a directory (or file, with --all)\n\
- only if it is N or fewer levels below the command\n\
- line argument; --max-depth=0 is the same as\n\
- --summarize\n\
-"), stdout);
- fputs (_("\
- --files0-from=F summarize device usage of the\n\
- NUL-terminated file names specified in file F;\n\
- if F is -, read names from standard input\n\
- -H equivalent to --dereference-args (-D)\n\
- -h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)\
-\n\
- --inodes list inode usage information instead of block usage\n\
-"), stdout);
- fputs (_("\
- -k like --block-size=1K\n\
- -L, --dereference dereference all symbolic links\n\
- -l, --count-links count sizes many times if hard linked\n\
- -m like --block-size=1M\n\
-"), stdout);
- fputs (_("\
- -P, --no-dereference don't follow any symbolic links (this is the default)\n\
- -S, --separate-dirs for directories do not include size of subdirectories\n\
- --si like -h, but use powers of 1000 not 1024\n\
- -s, --summarize display only a total for each argument\n\
-"), stdout);
- fputs (_("\
- -t, --threshold=SIZE exclude entries smaller than SIZE if positive,\n\
- or entries greater than SIZE if negative\n\
- --time show time of the last modification of any file in the\n\
- directory, or any of its subdirectories\n\
- --time=WORD show time as WORD instead of modification time:\n\
- atime, access, use, ctime or status\n\
-"), stdout);
- fputs (_("\
- --time-style=STYLE time/date format with --time; see TIME_STYLE below\n\
-"), stdout);
- fputs (_("\
- -X, --exclude-from=FILE exclude files that match any pattern in FILE\n\
- --exclude=PATTERN exclude files that match PATTERN\n\
- -x, --one-file-system skip directories on different file systems\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -0, --null\n\
+ end each output line with NUL, not newline\n\
+"));
+ oputs (_("\
+ -a, --all\n\
+ write counts for all files, not just directories\n\
+"));
+ oputs (_("\
+ -A, --apparent-size\n\
+ print apparent sizes rather than device usage;\n\
+ although the apparent size is usually smaller, it may be\n\
+ larger due to holes in ('sparse') files,\n\
+ internal fragmentation, indirect blocks, etc.\n\
+"));
+ oputs (_("\
+ -B, --block-size=SIZE\n\
+ scale sizes by SIZE before printing them; See SIZE format below;\n\
+ E.g., '-BM' prints sizes in units of 1,048,576 bytes\n\
+"));
+ oputs (_("\
+ -b, --bytes\n\
+ equivalent to '--apparent-size --block-size=1'\n\
+"));
+ oputs (_("\
+ -c, --total\n\
+ produce a grand total\n\
+"));
+ oputs (_("\
+ -D, --dereference-args\n\
+ dereference only symlinks that are listed on the command line\n\
+"));
+ oputs (_("\
+ -d, --max-depth=N\n\
+ print the total for a directory (or file, with --all)\n\
+ only if it is N or fewer levels below the command\n\
+ line argument; --max-depth=0 is the same as --summarize\n\
+"));
+ oputs (_("\
+ --files0-from=F\n\
+ summarize device usage of the NUL-terminated file names\n\
+ specified in file F; if F is -, read names from standard input\n\
+"));
+ oputs (_("\
+ -H\n\
+ equivalent to --dereference-args (-D)\n\
+"));
+ oputs (_("\
+ -h, --human-readable\n\
+ print sizes in human readable format (e.g., 1K 234M 2G)\n\
+"));
+ oputs (_("\
+ --inodes\n\
+ list inode usage information instead of block usage\n\
+"));
+ oputs (_("\
+ -k\n\
+ like --block-size=1K\n\
+"));
+ oputs (_("\
+ -L, --dereference\n\
+ dereference all symbolic links\n\
+"));
+ oputs (_("\
+ -l, --count-links\n\
+ count sizes many times if hard linked\n\
+"));
+ oputs (_("\
+ -m\n\
+ like --block-size=1M\n\
+"));
+ oputs (_("\
+ -P, --no-dereference\n\
+ don't follow any symbolic links (this is the default)\n\
+"));
+ oputs (_("\
+ -S, --separate-dirs\n\
+ for directories do not include size of subdirectories\n\
+"));
+ oputs (_("\
+ --si\n\
+ like -h, but use powers of 1000 not 1024\n\
+"));
+ oputs (_("\
+ -s, --summarize\n\
+ display only a total for each argument\n\
+"));
+ oputs (_("\
+ -t, --threshold=SIZE\n\
+ exclude entries smaller than SIZE if positive,\n\
+ or entries greater than SIZE if negative\n\
+"));
+ oputs (_("\
+ --time\n\
+ show time of the last modification of any file in the directory,\n\
+ or any of its subdirectories\n\
+"));
+ oputs (_("\
+ --time=WORD\n\
+ show time as WORD instead of modification time:\n\
+ atime, access, use, ctime or status\n\
+"));
+ oputs (_("\
+ --time-style=STYLE\n\
+ time/date format with --time; see TIME_STYLE below\n\
+"));
+ oputs (_("\
+ -X, --exclude-from=FILE\n\
+ exclude files that match any pattern in FILE\n\
+"));
+ oputs (_("\
+ --exclude=PATTERN\n\
+ exclude files that match PATTERN\n\
+"));
+ oputs (_("\
+ -x, --one-file-system\n\
+ skip directories on different file systems\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_blocksize_note ("DU");
emit_size_note ();
fputs (_("\
diff --git a/src/echo.c b/src/echo.c
index beabf589a3..872f11c748 100644
--- a/src/echo.c
+++ b/src/echo.c
@@ -47,18 +47,26 @@ Usage: %s [SHORT-OPTION]... [STRING]...\n\
fputs (_("\
Echo the STRING(s) to standard output.\n\
\n\
- -n do not output the trailing newline\n\
"), stdout);
- fputs (_(DEFAULT_ECHO_TO_XPG
+ oputs (_("\
+ -n do not output the trailing newline\n\
+"));
+ oputs (_(DEFAULT_ECHO_TO_XPG
? N_("\
- -e enable interpretation of backslash escapes (default)\n\
- -E disable interpretation of backslash escapes\n")
+ -e enable interpretation of backslash escapes (default)\n\
+")
: N_("\
- -e enable interpretation of backslash escapes\n\
- -E disable interpretation of backslash escapes (default)\n")),
- stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ -e enable interpretation of backslash escapes\n\
+")));
+ oputs (_(DEFAULT_ECHO_TO_XPG
+ ? N_("\
+ -E disable interpretation of backslash escapes\n\
+")
+ : N_("\
+ -E disable interpretation of backslash escapes (default)\n\
+")));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
If -e is in effect, the following sequences are recognized:\n\
diff --git a/src/env.c b/src/env.c
index 070d9f1119..d5acab7bda 100644
--- a/src/env.c
+++ b/src/env.c
@@ -119,39 +119,53 @@ Set each NAME to VALUE in the environment and run COMMAND.\n\
emit_mandatory_arg_note ();
- fputs (_("\
- -a, --argv0=ARG pass ARG as the zeroth argument of COMMAND\n\
-"), stdout);
- fputs (_("\
- -i, --ignore-environment start with an empty environment\n\
- -0, --null end each output line with NUL, not newline\n\
- -u, --unset=NAME remove variable from the environment\n\
-"), stdout);
- fputs (_("\
- -C, --chdir=DIR change working directory to DIR\n\
-"), stdout);
- fputs (_("\
- -S, --split-string=S process and split S into separate arguments;\n\
- used to pass multiple arguments on shebang lines\n\
-"), stdout);
- fputs (_("\
- --block-signal[=SIG] block delivery of SIG signal(s) to COMMAND\n\
-"), stdout);
- fputs (_("\
- --default-signal[=SIG] reset handling of SIG signal(s) to the default\n\
-"), stdout);
- fputs (_("\
- --ignore-signal[=SIG] set handling of SIG signal(s) to do nothing\n\
-"), stdout);
- fputs (_("\
- --list-signal-handling list non default signal handling to \
-standard error\n\
-"), stdout);
- fputs (_("\
- -v, --debug print verbose information for each processing step\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -a, --argv0=ARG\n\
+ pass ARG as the zeroth argument of COMMAND\n\
+"));
+ oputs (_("\
+ -i, --ignore-environment\n\
+ start with an empty environment\n\
+"));
+ oputs (_("\
+ -0, --null\n\
+ end each output line with NUL, not newline\n\
+"));
+ oputs (_("\
+ -u, --unset=NAME\n\
+ remove variable from the environment\n\
+"));
+ oputs (_("\
+ -C, --chdir=DIR\n\
+ change working directory to DIR\n\
+"));
+ oputs (_("\
+ -S, --split-string=S\n\
+ process and split S into separate arguments;\n\
+ used to pass multiple arguments on shebang lines\n\
+"));
+ oputs (_("\
+ --block-signal[=SIG]\n\
+ block delivery of SIG signal(s) to COMMAND\n\
+"));
+ oputs (_("\
+ --default-signal[=SIG]\n\
+ reset handling of SIG signal(s) to the default\n\
+"));
+ oputs (_("\
+ --ignore-signal[=SIG]\n\
+ set handling of SIG signal(s) to do nothing\n\
+"));
+ oputs (_("\
+ --list-signal-handling\n\
+ list non default signal handling to standard error\n\
+"));
+ oputs (_("\
+ -v, --debug\n\
+ print verbose information for each processing step\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
A mere - implies -i. If no COMMAND, print the resulting environment.\n\
diff --git a/src/expand-common.c b/src/expand-common.c
index 0d4f8955a0..92e7695ab3 100644
--- a/src/expand-common.c
+++ b/src/expand-common.c
@@ -399,17 +399,18 @@ cleanup_file_list_stdin (void)
/* Emit the --help output for --tabs=LIST option accepted by expand and
unexpand. */
extern void
-emit_tab_list_info (void)
+emit_tab_list_info (char const* program)
{
/* suppress syntax check for emit_mandatory_arg_note() */
+ oputs_ (program, _("\
+ -t, --tabs=LIST\n\
+ use comma separated list of tab positions.\n\
+"));
fputs (_("\
- -t, --tabs=LIST use comma separated list of tab positions.\n\
-"), stdout);
- fputs (_("\
- The last specified position can be prefixed with '/'\n\
- to specify a tab size to use after the last\n\
- explicitly specified tab stop. Also a prefix of '+'\n\
- can be used to align remaining tab stops relative to\n\
- the last specified tab stop instead of the first column\n\
+ The last specified position can be prefixed with '/'\n\
+ to specify a tab size to use after the last\n\
+ explicitly specified tab stop. Also a prefix of '+'\n\
+ can be used to align remaining tab stops relative to\n\
+ the last specified tab stop instead of the first column\n\
"), stdout);
}
diff --git a/src/expand-common.h b/src/expand-common.h
index af8fd5182f..49cae1116f 100644
--- a/src/expand-common.h
+++ b/src/expand-common.h
@@ -73,4 +73,4 @@ cleanup_file_list_stdin (void);
/* Emit the --help output for --tabs=LIST option accepted by expand and
unexpand. */
extern void
-emit_tab_list_info (void);
+emit_tab_list_info (char const *program);
diff --git a/src/expand.c b/src/expand.c
index ef74ab0f64..cbf659c17e 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -74,13 +74,17 @@ Convert tabs in each FILE to spaces, writing to standard output.\n\
emit_stdin_note ();
emit_mandatory_arg_note ();
- fputs (_("\
- -i, --initial do not convert tabs after non blanks\n\
- -t, --tabs=N have tabs N characters apart, not 8\n\
-"), stdout);
- emit_tab_list_info ();
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -i, --initial\n\
+ do not convert tabs after non blanks\n\
+"));
+ oputs (_("\
+ -t, --tabs=N\n\
+ have tabs N characters apart, not 8\n\
+"));
+ emit_tab_list_info (PROGRAM_NAME);
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_ancillary_info (PROGRAM_NAME);
}
exit (status);
diff --git a/src/expr.c b/src/expr.c
index b6e8230587..021db1f1ea 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -237,8 +237,8 @@ Usage: %s EXPRESSION\n\
"),
program_name, program_name);
putchar ('\n');
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
Print the value of EXPRESSION to standard output. A blank line below\n\
diff --git a/src/factor.c b/src/factor.c
index 13dba11bdb..06f7b31a23 100644
--- a/src/factor.c
+++ b/src/factor.c
@@ -1953,11 +1953,12 @@ Print the prime factors of each specified integer NUMBER. If none\n\
are specified on the command line, read them from standard input.\n\
\n\
"), stdout);
- fputs ("\
- -h, --exponents print repeated factors in form p^e unless e is 1\n\
-", stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -h, --exponents\n\
+ print repeated factors in form p^e unless e is 1\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_ancillary_info (PROGRAM_NAME);
}
exit (status);
diff --git a/src/fmt.c b/src/fmt.c
index e7edb5735c..53250527f3 100644
--- a/src/fmt.c
+++ b/src/fmt.c
@@ -274,23 +274,39 @@ The option -WIDTH is an abbreviated form of --width=DIGITS.\n\
emit_stdin_note ();
emit_mandatory_arg_note ();
- fputs (_("\
- -c, --crown-margin preserve indentation of first two lines\n\
- -p, --prefix=STRING reformat only lines beginning with STRING,\n\
- reattaching the prefix to reformatted lines\n\
- -s, --split-only split long lines, but do not refill\n\
-"),
- stdout);
+ oputs (_("\
+ -c, --crown-margin\n\
+ preserve indentation of first two lines\n\
+"));
+ oputs (_("\
+ -p, --prefix=STRING\n\
+ reformat only lines beginning with STRING,\n\
+ reattaching the prefix to reformatted lines\n\
+"));
+ oputs (_("\
+ -s, --split-only\n\
+ split long lines, but do not refill\n\
+"));
/* Tell xgettext that the "% o" below is not a printf-style
format string: xgettext:no-c-format */
- fputs (_("\
- -t, --tagged-paragraph indentation of first line different from second\n\
- -u, --uniform-spacing one space between words, two after sentences\n\
- -w, --width=WIDTH maximum line width (default of 75 columns)\n\
- -g, --goal=WIDTH goal width (default of 93% of width)\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -t, --tagged-paragraph\n\
+ indentation of first line different from second\n\
+"));
+ oputs (_("\
+ -u, --uniform-spacing\n\
+ one space between words, two after sentences\n\
+"));
+ oputs (_("\
+ -w, --width=WIDTH\n\
+ maximum line width (default of 75 columns)\n\
+"));
+ oputs (_("\
+ -g, --goal=WIDTH\n\
+ goal width (default of 93% of width)\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_ancillary_info (PROGRAM_NAME);
}
exit (status);
diff --git a/src/fold.c b/src/fold.c
index 1a6432dea7..ff6fea247c 100644
--- a/src/fold.c
+++ b/src/fold.c
@@ -84,14 +84,24 @@ Wrap input lines in each FILE, writing to standard output.\n\
emit_stdin_note ();
emit_mandatory_arg_note ();
- fputs (_("\
- -b, --bytes count bytes rather than columns\n\
- -c, --characters count characters rather than columns\n\
- -s, --spaces break after blanks, or in words greater than WIDTH\n\
- -w, --width=WIDTH use WIDTH columns instead of 80\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -b, --bytes\n\
+ count bytes rather than columns\n\
+"));
+ oputs (_("\
+ -c, --characters\n\
+ count characters rather than columns\n\
+"));
+ oputs (_("\
+ -s, --spaces\n\
+ break after blanks, or in words greater than WIDTH\n\
+"));
+ oputs (_("\
+ -w, --width=WIDTH\n\
+ use WIDTH columns instead of 80\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_ancillary_info (PROGRAM_NAME);
}
exit (status);
diff --git a/src/groups.c b/src/groups.c
index a45dcbf435..faed5c810c 100644
--- a/src/groups.c
+++ b/src/groups.c
@@ -56,8 +56,8 @@ Print group memberships for each USERNAME or, if no USERNAME is specified, for\
\n\
the current process (which may differ if the groups database has changed).\n"),
stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_ancillary_info (PROGRAM_NAME);
}
exit (status);
diff --git a/src/head.c b/src/head.c
index 4bc6110880..704be33be7 100644
--- a/src/head.c
+++ b/src/head.c
@@ -117,23 +117,30 @@ With more than one FILE, precede each with a header giving the file name.\n\
emit_stdin_note ();
emit_mandatory_arg_note ();
- printf (_("\
- -c, --bytes=[-]NUM print the first NUM bytes of each file;\n\
- with the leading '-', print all but the last\n\
- NUM bytes of each file\n\
- -n, --lines=[-]NUM print the first NUM lines instead of the first %d;\n\
- with the leading '-', print all but the last\n\
- NUM lines of each file\n\
+ oputs (_("\
+ -c, --bytes=[-]NUM\n\
+ print the first NUM bytes of each file;\n\
+ with the leading '-', print all but the last NUM bytes of each file\n\
+"));
+ oprintf (_("\
+ -n, --lines=[-]NUM\n\
+ print the first NUM lines instead of the first %d;\n\
+ with the leading '-', print all but the last NUM lines of each file\n\
"), DEFAULT_NUMBER);
- fputs (_("\
- -q, --quiet, --silent never print headers giving file names\n\
- -v, --verbose always print headers giving file names\n\
-"), stdout);
- fputs (_("\
- -z, --zero-terminated line delimiter is NUL, not newline\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -q, --quiet, --silent\n\
+ never print headers giving file names\n\
+"));
+ oputs (_("\
+ -v, --verbose\n\
+ always print headers giving file names\n\
+"));
+ oputs (_("\
+ -z, --zero-terminated\n\
+ line delimiter is NUL, not newline\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
NUM may have a multiplier suffix:\n\
diff --git a/src/hostid.c b/src/hostid.c
index f282e3cebe..e20c686f17 100644
--- a/src/hostid.c
+++ b/src/hostid.c
@@ -42,8 +42,8 @@ Usage: %s [OPTION]\n\
Print the numeric identifier (in hexadecimal) for the current host.\n\
\n\
"), program_name);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_ancillary_info (PROGRAM_NAME);
}
exit (status);
diff --git a/src/hostname.c b/src/hostname.c
index 4d6b094db0..cd18ef6d9a 100644
--- a/src/hostname.c
+++ b/src/hostname.c
@@ -62,8 +62,8 @@ Print or set the hostname of the current system.\n\
\n\
"),
program_name, program_name);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_ancillary_info (PROGRAM_NAME);
}
exit (status);
diff --git a/src/id.c b/src/id.c
index 63a0d9e51d..9ba880ad88 100644
--- a/src/id.c
+++ b/src/id.c
@@ -97,19 +97,41 @@ Print user and group information for each specified USER,\n\
or (when USER omitted) for the current process.\n\
\n"),
stdout);
- fputs (_("\
- -a ignore, for compatibility with other versions\n\
- -Z, --context print only the security context of the process\n\
- -g, --group print only the effective group ID\n\
- -G, --groups print all group IDs\n\
- -n, --name print a name instead of a number, for -u,-g,-G\n\
- -r, --real print the real ID instead of the effective ID, with -u,-g,-G\n\
- -u, --user print only the effective user ID\n\
- -z, --zero delimit entries with NUL characters, not whitespace;\n\
- not permitted in default format\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -a\n\
+ ignore, for compatibility with other versions\n\
+"));
+ oputs (_("\
+ -Z, --context\n\
+ print only the security context of the process\n\
+"));
+ oputs (_("\
+ -g, --group\n\
+ print only the effective group ID\n\
+"));
+ oputs (_("\
+ -G, --groups\n\
+ print all group IDs\n\
+"));
+ oputs (_("\
+ -n, --name\n\
+ print a name instead of a number, for -u,-g,-G\n\
+"));
+ oputs (_("\
+ -r, --real\n\
+ print the real ID instead of the effective ID, with -u,-g,-G\n\
+"));
+ oputs (_("\
+ -u, --user\n\
+ print only the effective user ID\n\
+"));
+ oputs (_("\
+ -z, --zero\n\
+ delimit entries with NUL characters, not whitespace;\n\
+ not permitted in default format\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
Without any OPTION, print some useful set of identified information.\n\
diff --git a/src/install.c b/src/install.c
index 498d79f617..359eb657ee 100644
--- a/src/install.c
+++ b/src/install.c
@@ -609,51 +609,97 @@ In the 4th form, create all components of the given DIRECTORY(ies).\n\
emit_mandatory_arg_note ();
- fputs (_("\
- --backup[=CONTROL] make a backup of each existing destination file\n\
- -b like --backup but does not accept an argument\n\
- -c (ignored)\n\
- -C, --compare compare content of source and destination files, and\n\
- if no change to content, ownership, and permissions,\n\
- do not modify the destination at all\n\
- -d, --directory treat all arguments as directory names; create all\n\
- components of the specified directories\n\
-"), stdout);
- fputs (_("\
- -D create all leading components of DEST except the last,\n\
- or all components of --target-directory,\n\
- then copy SOURCE to DEST\n\
-"), stdout);
- fputs (_("\
- --debug explain how a file is copied. Implies -v\n\
-"), stdout);
- fputs (_("\
- -g, --group=GROUP set group ownership, instead of process' current group\n\
- -m, --mode=MODE set permission mode (as in chmod), instead of rwxr-xr-x\n\
- -o, --owner=OWNER set ownership (super-user only)\n\
-"), stdout);
- fputs (_("\
- -p, --preserve-timestamps apply access/modification times of SOURCE files\n\
- to corresponding destination files\n\
- -s, --strip strip symbol tables\n\
- --strip-program=PROGRAM program used to strip binaries\n\
- -S, --suffix=SUFFIX override the usual backup suffix\n\
- -t, --target-directory=DIRECTORY copy all SOURCE arguments into DIRECTORY\n\
- -T, --no-target-directory treat DEST as a normal file\n\
-"), stdout);
- fputs (_("\
- -v, --verbose print the name of each created file or directory\n\
-"), stdout);
- fputs (_("\
- --preserve-context preserve SELinux security context\n\
- -Z set SELinux security context of destination\n\
- file and each created directory to default type\n\
- --context[=CTX] like -Z, or if CTX is specified then set the\n\
- SELinux or SMACK security context to CTX\n\
-"), stdout);
-
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ --backup[=CONTROL]\n\
+ make a backup of each existing destination file\n\
+"));
+ oputs (_("\
+ -b\n\
+ like --backup but does not accept an argument\n\
+"));
+ oputs (_("\
+ -c\n\
+ (ignored)\n\
+"));
+ oputs (_("\
+ -C, --compare\n\
+ compare content of source and destination files,\n\
+ and if no change to content, ownership, and permissions,\n\
+ do not modify the destination at all\n\
+"));
+ oputs (_("\
+ -d, --directory\n\
+ treat all arguments as directory names;\n\
+ create all components of the specified directories\n\
+"));
+ oputs (_("\
+ -D\n\
+ create all leading components of DEST except the last,\n\
+ or all components of --target-directory,\n\
+ then copy SOURCE to DEST\n\
+"));
+ oputs (_("\
+ --debug\n\
+ explain how a file is copied. Implies -v\n\
+"));
+ oputs (_("\
+ -g, --group=GROUP\n\
+ set group ownership, instead of process' current group\n\
+"));
+ oputs (_("\
+ -m, --mode=MODE\n\
+ set permission mode (as in chmod), instead of rwxr-xr-x\n\
+"));
+ oputs (_("\
+ -o, --owner=OWNER\n\
+ set ownership (super-user only)\n\
+"));
+ oputs (_("\
+ -p, --preserve-timestamps\n\
+ apply access/modification times of SOURCE files\n\
+ to corresponding destination files\n\
+"));
+ oputs (_("\
+ -s, --strip\n\
+ strip symbol tables\n\
+"));
+ oputs (_("\
+ --strip-program=PROGRAM\n\
+ program used to strip binaries\n\
+"));
+ oputs (_("\
+ -S, --suffix=SUFFIX\n\
+ override the usual backup suffix\n\
+"));
+ oputs (_("\
+ -t, --target-directory=DIRECTORY\n\
+ copy all SOURCE arguments into DIRECTORY\n\
+"));
+ oputs (_("\
+ -T, --no-target-directory\n\
+ treat DEST as a normal file\n\
+"));
+ oputs (_("\
+ -v, --verbose\n\
+ print the name of each created file or directory\n\
+"));
+ oputs (_("\
+ --preserve-context\n\
+ preserve SELinux security context\n\
+"));
+ oputs (_("\
+ -Z\n\
+ set SELinux security context of destination file\n\
+ and each created directory, to default type\n\
+"));
+ oputs (_("\
+ --context[=CTX]\n\
+ like -Z, or if CTX is specified then set the\n\
+ SELinux or SMACK security context to CTX\n\
+"));
+
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_backup_suffix_note ();
emit_ancillary_info (PROGRAM_NAME);
}
diff --git a/src/join.c b/src/join.c
index 46e47037da..0801987239 100644
--- a/src/join.c
+++ b/src/join.c
@@ -205,37 +205,65 @@ standard output. The default join field is the first, delimited by blanks.\
\n\
When FILE1 or FILE2 (not both) is -, read standard input.\n\
"), stdout);
- fputs (_("\
-\n\
- -a FILENUM also print unpairable lines from file FILENUM, where\n\
- FILENUM is 1 or 2, corresponding to FILE1 or FILE2\n\
-"), stdout);
- fputs (_("\
- -e STRING replace missing (empty) input fields with STRING;\n\
- I.e., missing fields specified with '-12jo' options\
-\n\
-"), stdout);
- fputs (_("\
- -i, --ignore-case ignore differences in case when comparing fields\n\
- -j FIELD equivalent to '-1 FIELD -2 FIELD'\n\
- -o FORMAT obey FORMAT while constructing output line\n\
- -t CHAR use CHAR as input and output field separator\n\
-"), stdout);
- fputs (_("\
- -v FILENUM like -a FILENUM, but suppress joined output lines\n\
- -1 FIELD join on this FIELD of file 1\n\
- -2 FIELD join on this FIELD of file 2\n\
- --check-order check that the input is correctly sorted, even\n\
- if all input lines are pairable\n\
- --nocheck-order do not check that the input is correctly sorted\n\
- --header treat the first line in each file as field headers,\n\
- print them without trying to pair them\n\
-"), stdout);
- fputs (_("\
- -z, --zero-terminated line delimiter is NUL, not newline\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+
+ oputs (_("\
+ -a FILENUM\n\
+ also print unpairable lines from file FILENUM,\n\
+ where FILENUM is 1 or 2, corresponding to FILE1 or FILE2\n\
+"));
+ oputs (_("\
+ -e STRING\n\
+ replace missing (empty) input fields with STRING;\n\
+ I.e., missing fields specified with '-12jo' options\n\
+"));
+ oputs (_("\
+ -i, --ignore-case\n\
+ ignore differences in case when comparing fields\n\
+"));
+ oputs (_("\
+ -j FIELD\n\
+ equivalent to '-1 FIELD -2 FIELD'\n\
+"));
+ oputs (_("\
+ -o FORMAT\n\
+ obey FORMAT while constructing output line\n\
+"));
+ oputs (_("\
+ -t CHAR\n\
+ use CHAR as input and output field separator\n\
+"));
+ oputs (_("\
+ -v FILENUM\n\
+ like -a FILENUM, but suppress joined output lines\n\
+"));
+ oputs (_("\
+ -1 FIELD\n\
+ join on this FIELD of file 1\n\
+"));
+ oputs (_("\
+ -2 FIELD\n\
+ join on this FIELD of file 2\n\
+"));
+ oputs (_("\
+ --check-order\n\
+ check that the input is correctly sorted, even\n\
+ if all input lines are pairable\n\
+"));
+ oputs (_("\
+ --nocheck-order\n\
+ do not check that the input is correctly sorted\n\
+"));
+ oputs (_("\
+ --header\n\
+ treat the first line in each file as field headers,\n\
+ print them without trying to pair them\n\
+"));
+ oputs (_("\
+ -z, --zero-terminated\n\
+ line delimiter is NUL, not newline\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
Unless -t CHAR is given, leading blanks separate fields and are ignored,\n\
diff --git a/src/kill.c b/src/kill.c
index 742009a255..651f597ce6 100644
--- a/src/kill.c
+++ b/src/kill.c
@@ -68,14 +68,20 @@ Send signals to processes, or list signals.\n\
emit_mandatory_arg_note ();
- fputs (_("\
+ oputs (_("\
-s, --signal=SIGNAL, -SIGNAL\n\
- specify the name or number of the signal to be sent\n\
- -l, --list list signal names, or convert signal names to/from numbers\n\
- -t, --table print a table of signal information\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ specify the name or number of the signal to be sent\n\
+"));
+ oputs (_("\
+ -l, --list\n\
+ list signal names, or convert signal names to/from numbers\n\
+"));
+ oputs (_("\
+ -t, --table\n\
+ print a table of signal information\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\n\
SIGNAL may be a signal name like 'HUP', or a signal number like '1',\n\
or the exit status of a process terminated by a signal.\n\
diff --git a/src/link.c b/src/link.c
index 1125084b78..59c3628ec3 100644
--- a/src/link.c
+++ b/src/link.c
@@ -46,8 +46,8 @@ Usage: %s FILE1 FILE2\n\
fputs (_("Call the link function to create a link named FILE2\
to an existing FILE1.\n\n"),
stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_ancillary_info (PROGRAM_NAME);
}
exit (status);
diff --git a/src/ln.c b/src/ln.c
index 979071bcd8..a68e05e659 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -438,32 +438,66 @@ interpreted in relation to its parent directory.\n\
emit_mandatory_arg_note ();
- fputs (_("\
- --backup[=CONTROL] make a backup of each existing destination file\n\
- -b like --backup but does not accept an argument\n\
- -d, -F, --directory allow the superuser to attempt to hard link\n\
- directories (this will probably fail due to\n\
- system restrictions, even for the superuser)\n\
- -f, --force remove existing destination files\n\
-"), stdout);
- fputs (_("\
- -i, --interactive prompt whether to remove destinations\n\
- -L, --logical dereference TARGETs that are symbolic links\n\
- -n, --no-dereference treat LINK_NAME as a normal file if\n\
- it is a symbolic link to a directory\n\
- -P, --physical make hard links directly to symbolic links\n\
- -r, --relative with -s, create links relative to link location\n\
- -s, --symbolic make symbolic links instead of hard links\n\
-"), stdout);
- fputs (_("\
- -S, --suffix=SUFFIX override the usual backup suffix\n\
- -t, --target-directory=DIRECTORY specify the DIRECTORY in which to create\n\
- the links\n\
- -T, --no-target-directory treat LINK_NAME as a normal file always\n\
- -v, --verbose print name of each linked file\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ --backup[=CONTROL]\n\
+ make a backup of each existing destination file\n\
+"));
+ oputs (_("\
+ -b\n\
+ like --backup but does not accept an argument\n\
+"));
+ oputs (_("\
+ -d, -F, --directory\n\
+ allow the superuser to attempt to hard link directories,\n\
+ if supported by the system\n\
+"));
+ oputs (_("\
+ -f, --force\n\
+ remove existing destination files\n\
+"));
+ oputs (_("\
+ -i, --interactive\n\
+ prompt whether to remove destinations\n\
+"));
+ oputs (_("\
+ -L, --logical\n\
+ dereference TARGETs that are symbolic links\n\
+"));
+ oputs (_("\
+ -n, --no-dereference\n\
+ treat LINK_NAME as a normal file\n\
+ if it is a symbolic link to a directory\n\
+"));
+ oputs (_("\
+ -P, --physical\n\
+ make hard links directly to symbolic links\n\
+"));
+ oputs (_("\
+ -r, --relative\n\
+ with -s, create links relative to link location\n\
+"));
+ oputs (_("\
+ -s, --symbolic\n\
+ make symbolic links instead of hard links\n\
+"));
+ oputs (_("\
+ -S, --suffix=SUFFIX\n\
+ override the usual backup suffix\n\
+"));
+ oputs (_("\
+ -t, --target-directory=DIRECTORY\n\
+ specify the DIRECTORY in which to create the links\n\
+"));
+ oputs (_("\
+ -T, --no-target-directory\n\
+ treat LINK_NAME as a normal file always\n\
+"));
+ oputs (_("\
+ -v, --verbose\n\
+ print name of each linked file\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_backup_suffix_note ();
printf (_("\
\n\
diff --git a/src/logname.c b/src/logname.c
index 824a77ace0..31d5e9bcfb 100644
--- a/src/logname.c
+++ b/src/logname.c
@@ -39,8 +39,8 @@ usage (int status)
Print the user's login name.\n\
\n\
"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_ancillary_info (PROGRAM_NAME);
}
exit (status);
diff --git a/src/mkdir.c b/src/mkdir.c
index 38a696eeef..d52a498e75 100644
--- a/src/mkdir.c
+++ b/src/mkdir.c
@@ -61,20 +61,31 @@ Create the DIRECTORY(ies), if they do not already exist.\n\
emit_mandatory_arg_note ();
- fputs (_("\
- -m, --mode=MODE set file mode (as in chmod), not a=rwx - umask\n\
- -p, --parents no error if existing, make parent directories as needed,\n\
- with their file modes unaffected by any -m option\n\
- -v, --verbose print a message for each created directory\n\
-"), stdout);
- fputs (_("\
- -Z set SELinux security context of each created directory\n\
- to the default type\n\
- --context[=CTX] like -Z, or if CTX is specified then set the SELinux\n\
- or SMACK security context to CTX\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -m, --mode=MODE\n\
+ set file mode (as in chmod), not a=rwx - umask\n\
+"));
+ oputs (_("\
+ -p, --parents\n\
+ no error if existing, make parent directories as needed,\n\
+ with their file modes unaffected by any -m option\n\
+"));
+ oputs (_("\
+ -v, --verbose\n\
+ print a message for each created directory\n\
+"));
+ oputs (_("\
+ -Z\n\
+ set SELinux security context of each created directory\n\
+ to the default type\n\
+"));
+ oputs (_("\
+ --context[=CTX]\n\
+ like -Z, or if CTX is specified then set the\n\
+ SELinux or SMACK security context to CTX\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_ancillary_info (PROGRAM_NAME);
}
exit (status);
diff --git a/src/mkfifo.c b/src/mkfifo.c
index fc97013e6a..12d9a423ed 100644
--- a/src/mkfifo.c
+++ b/src/mkfifo.c
@@ -56,16 +56,21 @@ Create named pipes (FIFOs) with the given NAMEs.\n\
emit_mandatory_arg_note ();
- fputs (_("\
- -m, --mode=MODE set file permission bits to MODE, not a=rw - umask\n\
-"), stdout);
- fputs (_("\
- -Z set the SELinux security context to default type\n\
- --context[=CTX] like -Z, or if CTX is specified then set the SELinux\n\
- or SMACK security context to CTX\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -m, --mode=MODE\n\
+ set file permission bits to MODE, not a=rw - umask\n\
+"));
+ oputs (_("\
+ -Z\n\
+ set the SELinux security context to default type\n\
+"));
+ oputs (_("\
+ --context[=CTX]\n\
+ like -Z, or if CTX is specified then set the\n\
+ SELinux or SMACK security context to CTX\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_ancillary_info (PROGRAM_NAME);
}
exit (status);
diff --git a/src/mknod.c b/src/mknod.c
index 3789300377..59b844fcd5 100644
--- a/src/mknod.c
+++ b/src/mknod.c
@@ -58,16 +58,21 @@ Create the special file NAME of the given TYPE.\n\
emit_mandatory_arg_note ();
- fputs (_("\
- -m, --mode=MODE set file permission bits to MODE, not a=rw - umask\n\
-"), stdout);
- fputs (_("\
- -Z set the SELinux security context to default type\n\
- --context[=CTX] like -Z, or if CTX is specified then set the SELinux\n\
- or SMACK security context to CTX\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -m, --mode=MODE\n\
+ set file permission bits to MODE, not a=rw - umask\n\
+"));
+ oputs (_("\
+ -Z\n\
+ set the SELinux security context to default type\n\
+"));
+ oputs (_("\
+ --context[=CTX]\n\
+ like -Z, or if CTX is specified then set the\n\
+ SELinux or SMACK security context to CTX\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they\n\
diff --git a/src/mktemp.c b/src/mktemp.c
index ce8f5dd951..72523be642 100644
--- a/src/mktemp.c
+++ b/src/mktemp.c
@@ -72,29 +72,39 @@ If TEMPLATE is not specified, use tmp.XXXXXXXXXX, and --tmpdir is implied.\n\
Files are created u+rw, and directories u+rwx, minus umask restrictions.\n\
"), stdout);
fputs ("\n", stdout);
- fputs (_("\
- -d, --directory create a directory, not a file\n\
- -u, --dry-run do not create anything; merely print a name (unsafe)\n\
- -q, --quiet suppress diagnostics about file/dir-creation failure\n\
-"), stdout);
- fputs (_("\
- --suffix=SUFF append SUFF to TEMPLATE; SUFF must not contain a slash.\n\
- This option is implied if TEMPLATE does not end in X\n\
-"), stdout);
- fputs (_("\
- -p DIR, --tmpdir[=DIR] interpret TEMPLATE relative to DIR; if DIR is not\n\
- specified, use $TMPDIR if set, else /tmp. With\n\
- this option, TEMPLATE must not be an absolute name;\n\
- unlike with -t, TEMPLATE may contain slashes, but\n\
- mktemp creates only the final component\n\
-"), stdout);
- fputs (_("\
- -t interpret TEMPLATE as a single file name component,\n\
- relative to a directory: $TMPDIR, if set; else the\n\
- directory specified via -p; else /tmp [deprecated]\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -d, --directory\n\
+ create a directory, not a file\n\
+"));
+ oputs (_("\
+ -u, --dry-run\n\
+ do not create anything; merely print a name (unsafe)\n\
+"));
+ oputs (_("\
+ -q, --quiet\n\
+ suppress diagnostics about file/dir-creation failure\n\
+"));
+ oputs (_("\
+ --suffix=SUFF\n\
+ append SUFF to TEMPLATE; SUFF must not contain a slash.\n\
+ This option is implied if TEMPLATE does not end in X\n\
+"));
+ oputs (_("\
+ -p DIR, --tmpdir[=DIR]\n\
+ interpret TEMPLATE relative to DIR;\n\
+ if DIR is not specified, use $TMPDIR if set, else /tmp.\n\
+ With this option, TEMPLATE must not be an absolute name;\n\
+ unlike with -t, TEMPLATE may contain slashes,\n\
+ but mktemp creates only the final component\n\
+"));
+ oputs (_("\
+ -t\n\
+ interpret TEMPLATE as a single file name component,\n\
+ relative to a directory: $TMPDIR, if set;\n\
+ else the directory specified via -p; else /tmp [deprecated]\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_ancillary_info (PROGRAM_NAME);
}
diff --git a/src/mv.c b/src/mv.c
index ec0347692b..cd6aab473a 100644
--- a/src/mv.c
+++ b/src/mv.c
@@ -262,45 +262,76 @@ Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.\n\
emit_mandatory_arg_note ();
+ oputs (_("\
+ --backup[=CONTROL]\n\
+ make a backup of each existing destination file\n\
+"));
+ oputs (_("\
+ -b\n\
+ like --backup but does not accept an argument\n\
+"));
+ oputs (_("\
+ --debug\n\
+ explain how a file is copied. Implies -v\n\
+"));
+ oputs (_("\
+ --exchange\n\
+ exchange source and destination\n\
+"));
+ oputs (_("\
+ -f, --force\n\
+ do not prompt before overwriting\n\
+"));
+ oputs (_("\
+ -i, --interactive\n\
+ prompt before overwrite\n\
+"));
+ oputs (_("\
+ -n, --no-clobber\n\
+ do not overwrite an existing file\n\
+"));
fputs (_("\
- --backup[=CONTROL] make a backup of each existing destination file\
-\n\
- -b like --backup but does not accept an argument\n\
-"), stdout);
- fputs (_("\
- --debug explain how a file is copied. Implies -v\n\
-"), stdout);
- fputs (_("\
- --exchange exchange source and destination\n\
-"), stdout);
- fputs (_("\
- -f, --force do not prompt before overwriting\n\
- -i, --interactive prompt before overwrite\n\
- -n, --no-clobber do not overwrite an existing file\n\
If you specify more than one of -i, -f, -n, only the final one takes effect.\n\
"), stdout);
- fputs (_("\
- --no-copy do not copy if renaming fails\n\
- --strip-trailing-slashes remove any trailing slashes from each SOURCE\n\
- argument\n\
- -S, --suffix=SUFFIX override the usual backup suffix\n\
-"), stdout);
- fputs (_("\
- -t, --target-directory=DIRECTORY move all SOURCE arguments into DIRECTORY\n\
- -T, --no-target-directory treat DEST as a normal file\n\
-"), stdout);
- fputs (_("\
- --update[=UPDATE] control which existing files are updated;\n\
- UPDATE={all,none,none-fail,older(default)}\n\
- -u equivalent to --update[=older]. See below\n\
-"), stdout);
- fputs (_("\
- -v, --verbose explain what is being done\n\
- -Z, --context set SELinux security context of destination\n\
- file to default type\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ --no-copy\n\
+ do not copy if renaming fails\n\
+"));
+ oputs (_("\
+ --strip-trailing-slashes\n\
+ remove any trailing slashes from each SOURCE argument\n\
+"));
+ oputs (_("\
+ -S, --suffix=SUFFIX\n\
+ override the usual backup suffix\n\
+"));
+ oputs (_("\
+ -t, --target-directory=DIRECTORY\n\
+ move all SOURCE arguments into DIRECTORY\n\
+"));
+ oputs (_("\
+ -T, --no-target-directory\n\
+ treat DEST as a normal file\n\
+"));
+ oputs (_("\
+ --update[=UPDATE]\n\
+ control which existing files are updated;\n\
+ UPDATE={all,none,none-fail,older(default)}\n\
+"));
+ oputs (_("\
+ -u\n\
+ equivalent to --update[=older]. See below\n\
+"));
+ oputs (_("\
+ -v, --verbose\n\
+ explain what is being done\n\
+"));
+ oputs (_("\
+ -Z, --context\n\
+ set SELinux security context of destination file to default type\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
emit_update_parameters_note ();
emit_backup_suffix_note ();
emit_ancillary_info (PROGRAM_NAME);
diff --git a/src/nice.c b/src/nice.c
index 4b4b853619..71ebe2dadd 100644
--- a/src/nice.c
+++ b/src/nice.c
@@ -79,11 +79,12 @@ With no COMMAND, print the current niceness. Niceness values range from\n\
emit_mandatory_arg_note ();
- fputs (_("\
- -n, --adjustment=N add integer N to the niceness (default 10)\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+ oputs (_("\
+ -n, --adjustment=N\n\
+ add integer N to the niceness (default 10)\n\
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
emit_exec_status (PROGRAM_NAME);
emit_ancillary_info (PROGRAM_NAME);
diff --git a/src/nl.c b/src/nl.c
index 43967a90a1..805de34911 100644
--- a/src/nl.c
+++ b/src/nl.c
@@ -185,25 +185,41 @@ Write each FILE to standard output, with line numbers added.\n\
emit_stdin_note ();
emit_mandatory_arg_note ();
- fputs (_("\
+ oputs (_("\
-b, --body-numbering=STYLE use STYLE for numbering body lines\n\
+"));
+ oputs (_("\
-d, --section-delimiter=CC use CC for logical page delimiters\n\
+"));
+ oputs (_("\
-f, --footer-numbering=STYLE use STYLE for numbering footer lines\n\
-"), stdout);
- fputs (_("\
+"));
+ oputs (_("\
-h, --header-numbering=STYLE use STYLE for numbering header lines\n\
+"));
+ oputs (_("\
-i, --line-increment=NUMBER line number increment at each line\n\
+"));
+ oputs (_("\
-l, --join-blank-lines=NUMBER group of NUMBER empty lines counted as one\n\
+"));
+ oputs (_("\
-n, --number-format=FORMAT insert line numbers according to FORMAT\n\
+"));
+ oputs (_("\
-p, --no-renumber do not reset line numbers for each section\n\
+"));
+ oputs (_("\
-s, --number-separator=STRING add STRING after (possible) line number\n\
-"), stdout);
- fputs (_("\
+"));
+ oputs (_("\
-v, --starting-line-number=NUMBER first line number for each section\n\
+"));
+ oputs (_("\
-w, --number-width=NUMBER use NUMBER columns for line numbers\n\
-"), stdout);
- fputs (HELP_OPTION_DESCRIPTION, stdout);
- fputs (VERSION_OPTION_DESCRIPTION, stdout);
+"));
+ oputs (HELP_OPTION_DESCRIPTION);
+ oputs (VERSION_OPTION_DESCRIPTION);
fputs (_("\
\n\
Default options are: -bt -d'\\:' -fn -hn -i1 -l1 -n'rn' -s