summaryrefslogtreecommitdiff
path: root/src/nl.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-11-11 14:20:56 +0000
committerJim Meyering <jim@meyering.net>2001-11-11 14:20:56 +0000
commit5ffa85be43b8352d93cd67c8ee346f30e75aa7a1 (patch)
tree7172f6681cf6731e7bbe1a574a36a1b099a2f2c7 /src/nl.c
parent03132c06befcb21cfb0897658f1b8f7635faa081 (diff)
downloadcoreutils-5ffa85be43b8352d93cd67c8ee346f30e75aa7a1.tar.xz
(usage): Split --help output into smaller pieces.
Use fputs, not printf.
Diffstat (limited to 'src/nl.c')
-rw-r--r--src/nl.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/nl.c b/src/nl.c
index 562af28b9..bb59458c3 100644
--- a/src/nl.c
+++ b/src/nl.c
@@ -177,7 +177,7 @@ usage (int status)
Usage: %s [OPTION]... [FILE]...\n\
"),
program_name);
- printf (_("\
+ fputs (_("\
Write each FILE to standard output, with line numbers added.\n\
With no FILE, or when FILE is -, read standard input.\n\
\n\
@@ -185,12 +185,16 @@ Mandatory arguments to long options are mandatory for short options too.\n\
-b, --body-numbering=STYLE use STYLE for numbering body lines\n\
-d, --section-delimiter=CC use CC for separating logical pages\n\
-f, --footer-numbering=STYLE use STYLE for numbering footer lines\n\
+"), stdout);
+ fputs (_("\
-h, --header-numbering=STYLE use STYLE for numbering header lines\n\
-i, --page-increment=NUMBER line number increment at each line\n\
-l, --join-blank-lines=NUMBER group of NUMBER empty lines counted as one\n\
-n, --number-format=FORMAT insert line numbers according to FORMAT\n\
-p, --no-renumber do not reset line numbers at logical pages\n\
-s, --number-separator=STRING add STRING after (possible) line number\n\
+"), stdout);
+ fputs (_("\
-v, --first-page=NUMBER first line number on each logical page\n\
-w, --number-width=NUMBER use NUMBER columns for line numbers\n\
--help display this help and exit\n\
@@ -199,6 +203,8 @@ Mandatory arguments to long options are mandatory for short options too.\n\
By default, selects -v1 -i1 -l1 -sTAB -w6 -nrn -hn -bt -fn. CC are\n\
two delimiter characters for separating logical pages, a missing\n\
second character implies :. Type \\\\ for \\. STYLE is one of:\n\
+"), stdout);
+ fputs (_("\
\n\
a number all lines\n\
t number only nonempty lines\n\
@@ -211,7 +217,7 @@ FORMAT is one of:\n\
rn right justified, no leading zeros\n\
rz right justified, leading zeros\n\
\n\
-"));
+"), stdout);
puts (_("\nReport bugs to <bug-textutils@gnu.org>."));
}
exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);