From 87d6050bb0b919b32160a270e9b94e428bd799fa Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 16 Aug 2011 13:41:06 +0200 Subject: [PATCH] script: cleanup usage() Signed-off-by: Karel Zak --- term-utils/script.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/term-utils/script.c b/term-utils/script.c index deba155e9b..d96ca2fc49 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -127,21 +127,20 @@ die_if_link(char *fn) { static void __attribute__((__noreturn__)) usage(FILE *out) { - fprintf(out, _( - "\nUsage:\n" - " %s [options] [file]\n"), program_invocation_short_name); - - fprintf(out, _( - "\nOptions:\n" - " -a, --append append the output\n" - " -c, --command COMMAND run COMMAND rather than interactive shell\n" + fputs(_("\nUsage:\n"), out); + fprintf(out, + _(" %s [options] [file]\n"), program_invocation_short_name); + + fputs(_("\nOptions:\n"), out); + fputs(_(" -a, --append append the output\n" + " -c, --command run command rather than interactive shell\n" " -r, --return return exit code of the child process\n" " -f, --flush run flush after each write\n" " --force use output file even when it is a link\n" " -q, --quiet be quiet\n" - " -t, --timing[=FILE] output timing data to stderr (or to FILE)\n" + " -t, --timing[=] output timing data to stderr (or to FILE)\n" " -V, --version output version information and exit\n" - " -h, --help display this help and exit\n\n")); + " -h, --help display this help and exit\n\n"), out); exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); } -- 2.47.2