From d9b0ac1791b619ade628743da2d5f5a7ceff4ee4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 11 Nov 2001 15:02:23 +0000 Subject: [PATCH] (usage): Split --help output into smaller pieces. Use fputs, not printf. --- src/uniq.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/uniq.c b/src/uniq.c index 7ea3a404e0..82dbeb2342 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -134,13 +134,15 @@ usage (int status) Usage: %s [OPTION]... [INPUT [OUTPUT]]\n\ "), program_name); - printf (_("\ + fputs (_("\ Discard all but one of successive identical lines from INPUT (or\n\ standard input), writing to OUTPUT (or standard output).\n\ \n\ Mandatory arguments to long options are mandatory for short options too.\n\ -c, --count prefix lines by the number of occurrences\n\ -d, --repeated only print duplicate lines\n\ +"), stdout); + fputs (_("\ -D, --all-repeated[=delimit-method] print all duplicate lines\n\ delimit-method={none(default),prepend,separate)}\n\ Delimiting is done with blank lines.\n\ @@ -148,6 +150,8 @@ Mandatory arguments to long options are mandatory for short options too.\n\ -i, --ignore-case ignore differences in case when comparing\n\ -s, --skip-chars=N avoid comparing the first N characters\n\ -u, --unique only print unique lines\n\ +"), stdout); + fputs (_("\ -w, --check-chars=N compare no more than N characters in lines\n\ -N same as -f N\n\ +N same as -s N (obsolescent; will be withdrawn)\n\ @@ -156,7 +160,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\ \n\ A field is a run of whitespace, then non-whitespace characters.\n\ Fields are skipped before chars.\n\ -")); +"), stdout); puts (_("\nReport bugs to .")); } exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); -- 2.47.3