summaryrefslogtreecommitdiffstats
path: root/getopt
diff options
context:
space:
mode:
authorBenno Schulenberg2011-08-13 20:11:21 +0200
committerKarel Zak2011-08-16 10:16:30 +0200
commit7069d65329a1b680d437ab0798b18ba841834c91 (patch)
treeda13f49837105bcd6774f08cda33924d5492ed03 /getopt
parentfsck: in man page say that "options take arguments", not vice versa (diff)
downloadkernel-qcow2-util-linux-7069d65329a1b680d437ab0798b18ba841834c91.tar.gz
kernel-qcow2-util-linux-7069d65329a1b680d437ab0798b18ba841834c91.tar.xz
kernel-qcow2-util-linux-7069d65329a1b680d437ab0798b18ba841834c91.zip
getopt: do not bundle help text lines into a single unwieldy chunk
This undoes part of commit 283f8f0256655b73071290b92c58d998e883260a. Help text lines are best gettextized separately, or in small chunks of three to five lines, which are easily managed by translators. Bundling text lines when nothing in those texts changed is discarding translators' work unnecessarily. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'getopt')
-rw-r--r--getopt/getopt.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/getopt/getopt.c b/getopt/getopt.c
index a211bcb16..8da317874 100644
--- a/getopt/getopt.c
+++ b/getopt/getopt.c
@@ -313,20 +313,20 @@ static void __attribute__ ((__noreturn__)) print_help(void)
{
fprintf(stderr, _("Usage: %1$s optstring parameters\n"
" %1$s [options] [--] optstring parameters\n"
- " %1$s [options] -o|--options optstring [options] [--] parameters\n"
- "\nOptions:\n"
- " -a, --alternative Allow long options starting with single -\n"
- " -h, --help This small usage guide\n"
- " -l, --longoptions=longopts Long options to be recognized\n"
- " -n, --name=progname The name under which errors are reported\n"
- " -o, --options=optstring Short options to be recognized\n"
- " -q, --quiet Disable error reporting by getopt(3)\n"
- " -Q, --quiet-output No normal output\n"
- " -s, --shell=shell Set shell quoting conventions\n"
- " -T, --test Test for getopt(1) version\n"
- " -u, --unquote Do not quote the output\n"
- " -V, --version Output version information\n\n"),
+ " %1$s [options] -o|--options optstring [options] [--] parameters\n",
program_invocation_short_name);
+ fputs(_("\nOptions:\n"),stderr);
+ fputs(_(" -a, --alternative Allow long options starting with single -\n"),stderr);
+ fputs(_(" -h, --help This small usage guide\n"),stderr);
+ fputs(_(" -l, --longoptions=longopts Long options to be recognized\n"),stderr);
+ fputs(_(" -n, --name=progname The name under which errors are reported\n"),stderr);
+ fputs(_(" -o, --options=optstring Short options to be recognized\n"),stderr);
+ fputs(_(" -q, --quiet Disable error reporting by getopt(3)\n"),stderr);
+ fputs(_(" -Q, --quiet-output No normal output\n"),stderr);
+ fputs(_(" -s, --shell=shell Set shell quoting conventions\n"),stderr);
+ fputs(_(" -T, --test Test for getopt(1) version\n"),stderr);
+ fputs(_(" -u, --unquote Do not quote the output\n"),stderr);
+ fputs(_(" -V, --version Output version information\n"),stderr);
exit(PARAMETER_EXIT_CODE);
}