From c64963f87c8ac4cd16a6109e48bb430eafa85d11 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 12 Apr 2019 11:53:29 +0200 Subject: [PATCH] script: cleanup usage Signed-off-by: Karel Zak --- term-utils/script.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/term-utils/script.c b/term-utils/script.c index 56cc71951..28e8de36e 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -188,18 +188,19 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_("Make a typescript of a terminal session.\n"), out); fputs(USAGE_OPTIONS, out); - fputs(_(" -a, --append append the output\n" - " -c, --command run command rather than interactive shell\n" - " -e, --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" - " -o, --output-limit terminate if output files exceed size\n" - " -q, --quiet be quiet\n" - " -t[], --timing[=] output timing data to stderr or to FILE\n" - ), out); - printf(USAGE_HELP_OPTIONS(31)); + fputs(_(" -a, --append append the output\n"), out); + fputs(_(" -c, --command run command rather than interactive shell\n"), out); + fputs(_(" -e, --return return exit code of the child process\n"), out); + fputs(_(" -f, --flush run flush after each write\n"), out); + fputs(_(" --force use output file even when it is a link\n"), out); + fputs(_(" -o, --output-limit terminate if output files exceed size\n"), out); + fputs(_(" -q, --quiet be quiet\n"), out); + fputs(_(" -t[], --timing[=] output timing data to stderr or to FILE\n"), out); + fputs(USAGE_SEPARATOR, out); + printf(USAGE_HELP_OPTIONS(31)); printf(USAGE_MAN_TAIL("script(1)")); + exit(EXIT_SUCCESS); }