summaryrefslogtreecommitdiff
path: root/src/head.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-05-13 18:34:54 +0000
committerJim Meyering <jim@meyering.net>1995-05-13 18:34:54 +0000
commit7cdc7a0bd9dfa7a106a27115eb6fa1a3ee0f28ad (patch)
tree977d95cd30e4083cdebe7ce708c4940438689d05 /src/head.c
parente8be969ec8dabc29cf0f55750fdde2a52cc0df23 (diff)
downloadcoreutils-7cdc7a0bd9dfa7a106a27115eb6fa1a3ee0f28ad.tar.xz
(usage): Include one- or two-line synopsis in --help output.
From Karl Berry.
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 07c278219..67e0f15e2 100644
--- a/src/head.c
+++ b/src/head.c
@@ -386,6 +386,9 @@ Usage: %s [OPTION]... [FILE]...\n\
",
program_name);
printf ("\
+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\
\n\
-c, --bytes=SIZE print first SIZE bytes\n\
-n, --lines=NUMBER print first NUMBER lines instead of first 10\n\
@@ -396,8 +399,7 @@ Usage: %s [OPTION]... [FILE]...\n\
\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. With no\n\
-FILE, or when FILE is -, read standard input.\n\
+multipliers bkm follows concatenated, else read -n VALUE.\n\
");
}
exit (status);