summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-11-11 14:46:13 +0000
committerJim Meyering <jim@meyering.net>2001-11-11 14:46:13 +0000
commit997fd16b2d87d29c0e02f8a2d6f9f096a57bd0b4 (patch)
treef44d230d69d7f42b0680d44bd718826efe5b80d6 /src
parent2cf349d10e84bdee593bd13f61713b2dfd5a6e54 (diff)
downloadcoreutils-997fd16b2d87d29c0e02f8a2d6f9f096a57bd0b4.tar.xz
(usage): Split --help output into smaller pieces.
Use fputs, not printf.
Diffstat (limited to 'src')
-rw-r--r--src/sort.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/sort.c b/src/sort.c
index 969f5e95f..0b0aa9a03 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -286,7 +286,7 @@ usage (int status)
Usage: %s [OPTION]... [FILE]...\n\
"),
program_name);
- printf (_("\
+ fputs (_("\
Write sorted concatenation of all FILE(s) to standard output.\n\
\n\
Ordering options:\n\
@@ -295,15 +295,17 @@ Mandatory arguments to long options are mandatory for short options too.\n\
-b, --ignore-leading-blanks ignore leading blanks\n\
-d, --dictionary-order consider only blanks and alphanumeric characters\n\
-f, --ignore-case fold lower case to upper case characters\n\
+"), stdout);
+ fputs (_("\
-g, --general-numeric-sort compare according to general numerical value\n\
+
-i, --ignore-nonprinting consider only printable characters\n\
-M, --month-sort compare (unknown) < `JAN' < ... < `DEC'\n\
-n, --numeric-sort compare according to string numerical value\n\
-r, --reverse reverse the result of comparisons\n\
\n\
-")
- );
- printf (_("\
+"), stdout);
+ fputs (_("\
Other options:\n\
\n\
-c, --check check whether input is sorted; do not sort\n\
@@ -312,20 +314,23 @@ Other options:\n\
-o, --output=FILE write result to FILE instead of standard output\n\
-s, --stable stabilize sort by disabling last-resort comparison\n\
-S, --buffer-size=SIZE use SIZE for main memory buffer\n\
+"), stdout);
+ printf (_("\
-t, --field-separator=SEP use SEP instead of non- to whitespace transition\n\
-T, --temporary-directory=DIR use DIR for temporaries, not $TMPDIR or %s\n\
multiple options specify multiple directories\n\
-u, --unique with -c: check for strict ordering\n\
otherwise: output only the first of an equal run\n\
+"), DEFAULT_TMPDIR);
+ fputs (_("\
-z, --zero-terminated end lines with 0 byte, not newline\n\
+POS1 [-POS2] start a key at POS1, end it before POS2 (origin 0)\n\
Warning: this option is obsolescent\n\
--help display this help and exit\n\
--version output version information and exit\n\
\n\
-"),
- DEFAULT_TMPDIR);
- printf (_("\
+"), stdout);
+ fputs (_("\
POS is F[.C][OPTS], where F is the field number and C the character position\n\
in the field, both counted from one with -k, from zero with the obsolescent\n\
form. OPTS is made up of one or more single-letter ordering options, which\n\
@@ -333,7 +338,9 @@ override global ordering options for that key. If no key is given, use the\n\
entire line as the key.\n\
\n\
SIZE may be followed by the following multiplicative suffixes:\n\
-%% 1%% of memory, b 1, k 1024 (default), and so on for M, G, T, P, E, Z, Y.\n\
+"), stdout);
+ fputs (_("\
+% 1% of memory, b 1, k 1024 (default), and so on for M, G, T, P, E, Z, Y.\n\
\n\
With no FILE, or when FILE is -, read standard input.\n\
\n\
@@ -341,8 +348,7 @@ With no FILE, or when FILE is -, read standard input.\n\
The locale specified by the environment affects sort order.\n\
Set LC_ALL=C to get the traditional sort order that uses\n\
native byte values.\n\
-")
- );
+"), stdout );
puts (_("\nReport bugs to <bug-textutils@gnu.org>."));
}
/* Don't use EXIT_FAILURE here in case it is defined to be 1.