]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(usage): Split --help output into smaller pieces.
authorJim Meyering <jim@meyering.net>
Sun, 11 Nov 2001 13:52:50 +0000 (13:52 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 11 Nov 2001 13:52:50 +0000 (13:52 +0000)
Use fputs, not printf.

src/csplit.c
src/expand.c

index d9dd91d58875ee5f7da324e0c02918a19fd46c27..7812e375a7b0e57990ca6685a4f42c9c0d027d61 100644 (file)
@@ -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 <bug-textutils@gnu.org>."));
     }
   exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
index 4a7f1f9b3036e7a7f49933a41339e334768cbdc1..32749ce3e69037aef1c178dc52d56d5f0ce28e2c 100644 (file)
@@ -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 <bug-textutils@gnu.org>."));
     }
   exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);