diff options
author | Benno Schulenberg | 2011-01-31 22:35:44 +0100 |
---|---|---|
committer | Karel Zak | 2011-02-16 15:46:38 +0100 |
commit | e8ab5ce3d0ea7e63194bf96964c4dc637b998aeb (patch) | |
tree | 8bd60162296113b294e6345a2d9081159e6566ae /sys-utils/lscpu.c | |
parent | textual: fix three typos in message strings and improve consistency (diff) | |
download | kernel-qcow2-util-linux-e8ab5ce3d0ea7e63194bf96964c4dc637b998aeb.tar.gz kernel-qcow2-util-linux-e8ab5ce3d0ea7e63194bf96964c4dc637b998aeb.tar.xz kernel-qcow2-util-linux-e8ab5ce3d0ea7e63194bf96964c4dc637b998aeb.zip |
textual: improve the wording of some error and usage messages
[kzak@redhat.com: - cleanup lscpu(1) usage text
- use <disk> rather than <device> in partx(8)
usage text]
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/lscpu.c')
-rw-r--r-- | sys-utils/lscpu.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index 373fee14a..0efc5217c 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -915,14 +915,15 @@ print_readable(struct lscpu_desc *desc, int hex) static void __attribute__((__noreturn__)) usage(FILE *out) { - fprintf(out, _("Usage: %s [option]\n"), - program_invocation_short_name); - - fprintf(out,_("CPU architecture information helper\n\n" - " -h, --help usage information\n" - " -p, --parse print out in parsable instead of printable format.\n" - " -s, --sysroot use the directory as a new system root.\n" - " -x, --hex print haxadecimal masks rather than lists of CPU(s)\n")); + fprintf(out, _( + "\nUsage:\n" + " %s [options]\n"), program_invocation_short_name); + + puts(_( "\nOptions:\n" + " -h, --help print this help\n" + " -p, --parse print out a parsable instead of a readable format\n" + " -s, --sysroot DIR use directory DIR as system root\n" + " -x, --hex print hexadecimal masks rather than lists of CPUs\n")); exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); } |