From: Jim Meyering Date: Sun, 11 Nov 2001 13:56:07 +0000 (+0000) Subject: (usage): Split --help output into smaller pieces. X-Git-Tag: TEXTUTILS-2_0_17~124 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=7d24fad90d3ea4993cd7be9dd53dea446d597e2f;p=thirdparty%2Fcoreutils.git (usage): Split --help output into smaller pieces. Use fputs, not printf. --- diff --git a/src/head.c b/src/head.c index a2de33a441..3a8049351a 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 .")); } exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);