(usage): Split --help output into smaller pieces.
authorJim Meyering <jim@meyering.net>
Sun, 11 Nov 2001 15:00:53 +0000 (15:00 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 11 Nov 2001 15:00:53 +0000 (15:00 +0000)
Use fputs, not printf.

src/unexpand.c

index ffc858b..ed9b0e3 100644 (file)
@@ -376,19 +376,21 @@ usage (int status)
 Usage: %s [OPTION]... [FILE]...\n\
 "),
              program_name);
-      printf (_("\
+      fputs (_("\
 Convert spaces in each FILE to tabs, 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\
   -a, --all           convert all whitespace, instead of initial whitespace\n\
+"), stdout);
+     fputs (_("\
   -t, --tabs=NUMBER   have tabs NUMBER characters apart instead of 8\n\
   -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);