summaryrefslogtreecommitdiff
path: root/src/cut.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-11-11 20:04:57 +0000
committerJim Meyering <jim@meyering.net>2001-11-11 20:04:57 +0000
commit69b3ea263dafb7f315b714017d943c420acf9cdc (patch)
treede15d94d58e5cf5c3ad8d0f0afe9b4a218b839d0 /src/cut.c
parentb890a03963861cc97fa8cd35b796867283566f18 (diff)
downloadcoreutils-69b3ea263dafb7f315b714017d943c420acf9cdc.tar.xz
(usage): Split --help output into smaller pieces.
Use fputs, not printf.
Diffstat (limited to 'src/cut.c')
-rw-r--r--src/cut.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/cut.c b/src/cut.c
index f3d164873..f8e7fe252 100644
--- a/src/cut.c
+++ b/src/cut.c
@@ -168,23 +168,29 @@ usage (int status)
Usage: %s [OPTION]... [FILE]...\n\
"),
program_name);
- printf (_("\
+ fputs (_("\
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\
+"), stdout);
+ fputs (_("\
-f, --fields=LIST output only these fields; also print any line\n\
that contains no delimiter character, unless\n\
the -s option is specified\n\
-n (ignored)\n\
+"), stdout);
+ fputs (_("\
-s, --only-delimited do not print lines not containing delimiters\n\
--output-delimiter=STRING use STRING as the output delimiter\n\
the default is to use the input delimiter\n\
--help display this help and exit\n\
--version output version information and exit\n\
\n\
+"), stdout);
+ fputs (_("\
Use one, and only one of -b, -c or -f. Each LIST is made up of one\n\
range, or many ranges separated by commas. Each range is one of:\n\
\n\
@@ -194,7 +200,7 @@ range, or many ranges separated by commas. Each range is one of:\n\
-M from first to M'th (included) byte, character or field\n\
\n\
With no FILE, or when FILE is -, read standard input.\n\
-"));
+"), stdout);
puts (_("\nReport bugs to <bug-textutils@gnu.org>."));
}
exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);