From ff4121e50e68db095b7248ec6160ff3a660be55a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 4 Nov 2001 09:43:16 +0000 Subject: [PATCH] (usage): Say that ``Mandatory arguments to long options are mandatory for short options too.\n\'' --- src/csplit.c | 3 ++- src/cut.c | 3 ++- src/expand.c | 3 ++- src/fold.c | 3 ++- src/head.c | 1 + src/nl.c | 3 ++- src/od.c | 1 + src/paste.c | 3 ++- src/pr.c | 1 + src/sort.c | 1 + src/split.c | 1 + src/tac.c | 1 + src/tail.c | 1 + src/unexpand.c | 3 ++- src/uniq.c | 1 + 15 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/csplit.c b/src/csplit.c index 77182d8..d9dd91d 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -1,5 +1,5 @@ /* csplit - split a file into sections determined by context lines - Copyright (C) 91, 1995-2000 Free Software Foundation, Inc. + Copyright (C) 91, 1995-2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -1507,6 +1507,7 @@ Usage: %s [OPTION]... FILE PATTERN...\n\ 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\ -f, --prefix=PREFIX use PREFIX instead of `xx'\n\ -k, --keep-files do not remove output files on errors\n\ diff --git a/src/cut.c b/src/cut.c index 7346bee..f3d1648 100644 --- a/src/cut.c +++ b/src/cut.c @@ -1,5 +1,5 @@ /* cut - remove parts of lines of files - Copyright (C) 1984, 1997, 1998, 1999, 2000 by David M. Ihnat + Copyright (C) 1984, 1997, 1998, 1999, 2000, 2001 by David M. Ihnat This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -171,6 +171,7 @@ Usage: %s [OPTION]... [FILE]...\n\ printf (_("\ Print selected parts of lines from each FILE to standard output.\n\ \n\ +Mandatory arguments to long options are mandatory for short options too.\n\ -b, --bytes=LIST output only these bytes\n\ -c, --characters=LIST output only these characters\n\ -d, --delimiter=DELIM use DELIM instead of TAB for field delimiter\n\ diff --git a/src/expand.c b/src/expand.c index c829f77..4a7f1f9 100644 --- a/src/expand.c +++ b/src/expand.c @@ -1,5 +1,5 @@ /* expand - convert tabs to spaces - Copyright (C) 89, 91, 1995-2000 Free Software Foundation, Inc. + Copyright (C) 89, 91, 1995-2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -114,6 +114,7 @@ Usage: %s [OPTION]... [FILE]...\n\ 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\ -t, --tabs=LIST use comma separated list of explicit tab positions\n\ diff --git a/src/fold.c b/src/fold.c index 97afc55..c386797 100644 --- a/src/fold.c +++ b/src/fold.c @@ -1,5 +1,5 @@ /* fold -- wrap each input line to fit in specified width. - Copyright (C) 91, 1995-2000 Free Software Foundation, Inc. + Copyright (C) 91, 1995-2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -71,6 +71,7 @@ Usage: %s [OPTION]... [FILE]...\n\ Wrap input lines in each FILE (standard input by default), writing to\n\ standard output.\n\ \n\ +Mandatory arguments to long options are mandatory for short options too.\n\ -b, --bytes count bytes rather than columns\n\ -s, --spaces break at spaces\n\ -w, --width=WIDTH use WIDTH columns instead of 80\n\ diff --git a/src/head.c b/src/head.c index 6343897..a2de33a 100644 --- a/src/head.c +++ b/src/head.c @@ -90,6 +90,7 @@ 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\ \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\ -q, --quiet, --silent never print headers giving file names\n\ diff --git a/src/nl.c b/src/nl.c index 4788dd9..ad6abef 100644 --- a/src/nl.c +++ b/src/nl.c @@ -1,5 +1,5 @@ /* nl -- number lines of files - Copyright (C) 89, 92, 1995-2000 Free Software Foundation, Inc. + Copyright (C) 89, 92, 1995-2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -181,6 +181,7 @@ Usage: %s [OPTION]... [FILE]...\n\ Write each FILE to standard output, with line numbers added.\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\ -b, --body-numbering=STYLE use STYLE for numbering body lines\n\ -d, --section-delimiter=CC use CC for separating logical pages\n\ -f, --footer-numbering=STYLE use STYLE for numbering footer lines\n\ diff --git a/src/od.c b/src/od.c index fdcbd14..8d9c69c 100644 --- a/src/od.c +++ b/src/od.c @@ -282,6 +282,7 @@ of FILE to standard output. With more than one FILE argument,\n\ concatenate them in the listed order to form the input.\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, --address-radix=RADIX decide how file offsets are printed\n\ -j, --skip-bytes=BYTES skip BYTES input bytes first\n\ -N, --read-bytes=BYTES limit dump to BYTES input bytes\n\ diff --git a/src/paste.c b/src/paste.c index 8bd4443..0617502 100644 --- a/src/paste.c +++ b/src/paste.c @@ -1,5 +1,5 @@ /* paste - merge lines of files - Copyright (C) 1984, 1997, 1998, 1999, 2000 by David M. Ihnat + Copyright (C) 1984, 1997, 1998, 1999, 2000, 2001 by David M. Ihnat This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -409,6 +409,7 @@ Write lines consisting of the sequentially corresponding lines from\n\ each FILE, separated by TABs, 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\ -d, --delimiters=LIST reuse characters from LIST instead of TABs\n\ -s, --serial paste one file at a time instead of in parallel\n\ --help display this help and exit\n\ diff --git a/src/pr.c b/src/pr.c index 9eb13f8..aec8367 100644 --- a/src/pr.c +++ b/src/pr.c @@ -2749,6 +2749,7 @@ Usage: %s [OPTION]... [FILE]...\n\ printf (_("\ Paginate or columnate FILE(s) for printing.\n\ \n\ +Mandatory arguments to long options are mandatory for short options too.\n\ +FIRST_PAGE[:LAST_PAGE], --pages=FIRST_PAGE[:LAST_PAGE]\n\ begin [stop] printing with page FIRST_[LAST_]PAGE\n\ -COLUMN, --columns=COLUMN\n\ diff --git a/src/sort.c b/src/sort.c index 17c4263..13304c7 100644 --- a/src/sort.c +++ b/src/sort.c @@ -291,6 +291,7 @@ Write sorted concatenation of all FILE(s) to standard output.\n\ \n\ Ordering options:\n\ \n\ +Mandatory arguments to long options are mandatory for short options too.\n\ -b, --ignore-leading-blanks ignore leading blanks\n\ -d, --dictionary-order consider only blanks and alphanumeric characters\n\ -f, --ignore-case fold lower case to upper case characters\n\ diff --git a/src/split.c b/src/split.c index 2632819..a02e64a 100644 --- a/src/split.c +++ b/src/split.c @@ -92,6 +92,7 @@ Usage: %s [OPTION] [INPUT [PREFIX]]\n\ Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default\n\ PREFIX is `x'. With no INPUT, or when INPUT is -, read standard input.\n\ \n\ +Mandatory arguments to long options are mandatory for short options too.\n\ -b, --bytes=SIZE put SIZE bytes per output file\n\ -C, --line-bytes=SIZE put at most SIZE bytes of lines per output file\n\ -l, --lines=NUMBER put NUMBER lines per output file\n\ diff --git a/src/tac.c b/src/tac.c index 7b06de7..2b0a2d8 100644 --- a/src/tac.c +++ b/src/tac.c @@ -132,6 +132,7 @@ Usage: %s [OPTION]... [FILE]...\n\ Write each FILE to standard output, last line first.\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\ -b, --before attach the separator before instead of after\n\ -r, --regex interpret the separator as a regular expression\n\ -s, --separator=STRING use STRING as the separator instead of newline\n\ diff --git a/src/tail.c b/src/tail.c index 7b4fa71..18f7bbe 100644 --- a/src/tail.c +++ b/src/tail.c @@ -242,6 +242,7 @@ Print the last %d 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\ \n\ +Mandatory arguments to long options are mandatory for short options too.\n\ --retry keep trying to open a file even if it is\n\ inaccessible when tail starts or if it becomes\n\ inaccessible later -- useful only with -f\n\ diff --git a/src/unexpand.c b/src/unexpand.c index e1485b1..ffc858b 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -1,5 +1,5 @@ /* unexpand - convert spaces to tabs - Copyright (C) 89, 91, 1995-2000 Free Software Foundation, Inc. + Copyright (C) 89, 91, 1995-2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -380,6 +380,7 @@ Usage: %s [OPTION]... [FILE]...\n\ 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\ -t, --tabs=NUMBER have tabs NUMBER characters apart instead of 8\n\ -t, --tabs=LIST use comma separated list of explicit tab positions\n\ diff --git a/src/uniq.c b/src/uniq.c index 3abb131..7ea3a40 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -138,6 +138,7 @@ Usage: %s [OPTION]... [INPUT [OUTPUT]]\n\ 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\ -D, --all-repeated[=delimit-method] print all duplicate lines\n\ -- 2.7.4