diff options
author | Karel Zak | 2011-08-16 13:41:06 +0200 |
---|---|---|
committer | Karel Zak | 2011-08-16 13:41:06 +0200 |
commit | 87d6050bb0b919b32160a270e9b94e428bd799fa (patch) | |
tree | 2c019c255ee1811cd94d00793c30b0d6261e7301 /term-utils/script.c | |
parent | mesg: cleanup usage() (diff) | |
download | kernel-qcow2-util-linux-87d6050bb0b919b32160a270e9b94e428bd799fa.tar.gz kernel-qcow2-util-linux-87d6050bb0b919b32160a270e9b94e428bd799fa.tar.xz kernel-qcow2-util-linux-87d6050bb0b919b32160a270e9b94e428bd799fa.zip |
script: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils/script.c')
-rw-r--r-- | term-utils/script.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/term-utils/script.c b/term-utils/script.c index deba155e9..d96ca2fc4 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 <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[=<file>] 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); } |