From 1f7d9dacf425be80a8702bc7bc08ed68606391a0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 11 Nov 2001 13:52:50 +0000 Subject: [PATCH] (usage): Split --help output into smaller pieces. Use fputs, not printf. --- src/csplit.c | 12 ++++++++---- src/expand.c | 6 ++++-- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/csplit.c b/src/csplit.c index d9dd91d588..7812e375a7 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -1503,14 +1503,16 @@ usage (int status) Usage: %s [OPTION]... FILE PATTERN...\n\ "), program_name); - printf (_("\ + fputs (_("\ Output pieces of FILE separated by PATTERN(s) to files `xx01', `xx02', ...,\n\ and output byte counts of each piece to standard output.\n\ \n\ Mandatory arguments to long options are mandatory for short options too.\n\ - -b, --suffix-format=FORMAT use sprintf FORMAT instead of %%d\n\ + -b, --suffix-format=FORMAT use sprintf FORMAT instead of %d\n\ -f, --prefix=PREFIX use PREFIX instead of `xx'\n\ -k, --keep-files do not remove output files on errors\n\ +"), stdout); + fputs (_("\ -n, --digits=DIGITS use specified number of digits instead of 2\n\ -s, --quiet, --silent do not print counts of output file sizes\n\ -z, --elide-empty-files remove empty output files\n\ @@ -1518,15 +1520,17 @@ Mandatory arguments to long options are mandatory for short options too.\n\ --version output version information and exit\n\ \n\ Read standard input if FILE is -. Each PATTERN may be:\n\ +"), stdout); + fputs (_("\ \n\ INTEGER copy up to but not including specified line number\n\ /REGEXP/[OFFSET] copy up to but not including a matching line\n\ - %%REGEXP%%[OFFSET] skip to, but not including a matching line\n\ + %REGEXP%[OFFSET] skip to, but not including a matching line\n\ {INTEGER} repeat the previous pattern specified number of times\n\ {*} repeat the previous pattern as many times as possible\n\ \n\ A line OFFSET is a required `+' or `-' followed by a positive integer.\n\ -")); +"), stdout); puts (_("\nReport bugs to .")); } exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); diff --git a/src/expand.c b/src/expand.c index 4a7f1f9b30..32749ce3e6 100644 --- a/src/expand.c +++ b/src/expand.c @@ -110,19 +110,21 @@ usage (int status) Usage: %s [OPTION]... [FILE]...\n\ "), program_name); - printf (_("\ + fputs (_("\ Convert tabs in each FILE to spaces, writing to standard output.\n\ With no FILE, or when FILE is -, read standard input.\n\ \n\ Mandatory arguments to long options are mandatory for short options too.\n\ -i, --initial do not convert TABs after non whitespace\n\ -t, --tabs=NUMBER have tabs NUMBER characters apart, not 8\n\ +"), stdout); + fputs (_("\ -t, --tabs=LIST use comma separated list of explicit tab positions\n\ --help display this help and exit\n\ --version output version information and exit\n\ \n\ Instead of -t NUMBER or -t LIST, -NUMBER or -LIST may be used.\n\ -")); +"), stdout); puts (_("\nReport bugs to .")); } exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); -- 2.47.3