]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
script: cleanup usage()
authorKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 11:41:06 +0000 (13:41 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 11:41:06 +0000 (13:41 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/script.c

index deba155e9b997f88ab53ff3952fcec3194aa1992..d96ca2fc4909111675755edac9867e36fd005a61 100644 (file)
@@ -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);
 }