summaryrefslogtreecommitdiffstats
path: root/text-utils/column.c
diff options
context:
space:
mode:
authorSami Kerola2013-01-23 00:27:13 +0100
committerKarel Zak2013-01-25 16:40:05 +0100
commit3eed42f342880a339d389ac890a629110f78b6d6 (patch)
tree6584fb2ce2700cc73953de84d165889c7d854c62 /text-utils/column.c
parentagetty: make usage() translator friendly (diff)
downloadkernel-qcow2-util-linux-3eed42f342880a339d389ac890a629110f78b6d6.tar.gz
kernel-qcow2-util-linux-3eed42f342880a339d389ac890a629110f78b6d6.tar.xz
kernel-qcow2-util-linux-3eed42f342880a339d389ac890a629110f78b6d6.zip
column: make usage() translator friendly
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'text-utils/column.c')
-rw-r--r--text-utils/column.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/text-utils/column.c b/text-utils/column.c
index 33bc28dfc..1f1a0a2a5 100644
--- a/text-utils/column.c
+++ b/text-utils/column.c
@@ -88,21 +88,20 @@ static void __attribute__((__noreturn__)) usage(int rc)
{
FILE *out = rc == EXIT_FAILURE ? stderr : stdout;
- fprintf(out, _("\nUsage: %s [options] [file ...]\n"),
- program_invocation_short_name);
- fprintf(out, _("\nOptions:\n"));
-
- fprintf(out, _(
- " -h, --help displays this help text\n"
- " -V, --version output version information and exit\n"
- " -c, --columns <width> width of output in number of characters\n"
- " -t, --table create a table\n"
- " -s, --separator <string> possible table delimiters\n"
- " -o, --output-separator <string>\n"
- " table output column separator, default is two spaces\n"
- " -x, --fillrows fill rows before columns\n"));
-
- fprintf(out, _("\nFor more information see column(1).\n"));
+ fputs(USAGE_HEADER, out);
+ fprintf(out, _(" %s [options] [file ...]\n"), program_invocation_short_name);
+ fputs(USAGE_OPTIONS, out);
+ fputs(_(" -c, --columns <width> width of output in number of characters\n"), out);
+ fputs(_(" -t, --table create a table\n"), out);
+ fputs(_(" -s, --separator <string> possible table delimiters\n"), out);
+ fputs(_(" -o, --output-separator <string>\n"), out);
+ fputs(_(" table output column separator, default is two spaces\n"), out);
+ fputs(_(" -x, --fillrows fill rows before columns\n"), out);
+ fputs(USAGE_SEPARATOR, out);
+ fputs(USAGE_HELP, out);
+ fputs(USAGE_VERSION, out);
+ fprintf(out, USAGE_MAN_TAIL("column(1)"));
+
exit(rc);
}