From 14cc9ddafec34cda799a8dbdedc8b9ffbdade151 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 16 Aug 2011 13:43:34 +0200 Subject: scriptreplay: cleanup usage() Signed-off-by: Karel Zak --- term-utils/scriptreplay.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'term-utils/scriptreplay.c') diff --git a/term-utils/scriptreplay.c b/term-utils/scriptreplay.c index 86c82fde7..5aa8d42af 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); } -- cgit v1.2.3-55-g7522