From 3eed42f342880a339d389ac890a629110f78b6d6 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Tue, 22 Jan 2013 23:27:13 +0000 Subject: column: make usage() translator friendly Signed-off-by: Sami Kerola --- text-utils/column.c | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'text-utils/column.c') 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 of output in number of characters\n" - " -t, --table create a table\n" - " -s, --separator possible table delimiters\n" - " -o, --output-separator \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 of output in number of characters\n"), out); + fputs(_(" -t, --table create a table\n"), out); + fputs(_(" -s, --separator possible table delimiters\n"), out); + fputs(_(" -o, --output-separator \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); } -- cgit v1.2.3-55-g7522