summaryrefslogtreecommitdiff
path: root/src/head.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-11-11 13:56:07 +0000
committerJim Meyering <jim@meyering.net>2001-11-11 13:56:07 +0000
commit7d24fad90d3ea4993cd7be9dd53dea446d597e2f (patch)
tree08a0386cc21ec32abcc19a452beed9b668b1f9eb /src/head.c
parent1f7d9dacf425be80a8702bc7bc08ed68606391a0 (diff)
downloadcoreutils-7d24fad90d3ea4993cd7be9dd53dea446d597e2f.tar.xz
(usage): Split --help output into smaller pieces.
Use fputs, not printf.
Diffstat (limited to 'src/head.c')
-rw-r--r--src/head.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/head.c b/src/head.c
index a2de33a44..3a8049351 100644
--- a/src/head.c
+++ b/src/head.c
@@ -85,7 +85,7 @@ usage (int status)
Usage: %s [OPTION]... [FILE]...\n\
"),
program_name);
- printf (_("\
+ fputs (_("\
Print first 10 lines of each FILE to standard output.\n\
With more than one FILE, precede each with a header giving the file name.\n\
With no FILE, or when FILE is -, read standard input.\n\
@@ -93,6 +93,8 @@ With no FILE, or when FILE is -, read standard input.\n\
Mandatory arguments to long options are mandatory for short options too.\n\
-c, --bytes=SIZE print first SIZE bytes\n\
-n, --lines=NUMBER print first NUMBER lines instead of first 10\n\
+"), stdout);
+ fputs (_("\
-q, --quiet, --silent never print headers giving file names\n\
-v, --verbose always print headers giving file names\n\
--help display this help and exit\n\
@@ -101,7 +103,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\
SIZE may have a multiplier suffix: b for 512, k for 1K, m for 1 Meg.\n\
If -VALUE is used as first OPTION, read -c VALUE when one of\n\
multipliers bkm follows concatenated, else read -n VALUE.\n\
-"));
+"), stdout);
puts (_("\nReport bugs to <bug-textutils@gnu.org>."));
}
exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);