From: Karel Zak Date: Tue, 16 Aug 2011 11:43:34 +0000 (+0200) Subject: scriptreplay: cleanup usage() X-Git-Tag: v2.20-rc2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14cc9ddafec34cda799a8dbdedc8b9ffbdade151;p=thirdparty%2Futil-linux.git scriptreplay: cleanup usage() Signed-off-by: Karel Zak --- diff --git a/term-utils/scriptreplay.c b/term-utils/scriptreplay.c index 86c82fde7d..5aa8d42af5 100644 --- a/term-utils/scriptreplay.c +++ b/term-utils/scriptreplay.c @@ -36,15 +36,17 @@ void __attribute__((__noreturn__)) usage(FILE *out) { - fprintf(out, _("Usage: %s timingfile [typescript] [divisor]\n"), - program_invocation_short_name); - fprintf(out, _( - "\nOptions:\n" - " -t, --timing FILE script timing output file\n" - " -s, --typescript FILE script terminal session output file\n" - " -d, --divisor NUM speed up or slow down execution with time divisor\n" + fputs(_("\nUsage:\n"), out); + fprintf(out, + _(" %s [-t] timingfile [typescript] [divisor]\n"), + program_invocation_short_name); + + fputs(_("\nOptions:\n"), out); + fputs(_(" -t, --timing script timing output file\n" + " -s, --typescript script terminal session output file\n" + " -d, --divisor speed up or slow down execution with time divisor\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); }