From: Karel Zak Date: Tue, 16 Aug 2011 11:41:06 +0000 (+0200) Subject: script: cleanup usage() X-Git-Tag: v2.20-rc2~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=87d6050bb0b919b32160a270e9b94e428bd799fa;p=thirdparty%2Futil-linux.git script: cleanup usage() Signed-off-by: Karel Zak --- 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); }