From 3cf274c9e99ed64c096b0032cc021f79c4fa5568 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Tue, 18 Jul 2017 14:29:07 +0200 Subject: script: fix ambiguity about the optional argument of the -t option [kzak@redhat.com: - merge two patches from Antonio to the one, - update the patch] Signed-off-by: Karel Zak Signed-off-by: Antonio Ospite --- term-utils/script.1 | 2 +- term-utils/script.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'term-utils') diff --git a/term-utils/script.1 b/term-utils/script.1 index ff3ef528d..6c50bc621 100644 --- a/term-utils/script.1 +++ b/term-utils/script.1 @@ -85,7 +85,7 @@ or symbolic link. The command will follow a symbolic link. \fB\-q\fR, \fB\-\-quiet\fR Be quiet (do not write start and done messages to standard output). .TP -\fB\-t\fR, \fB\-\-timing\fR[=\fIfile\fR] +\fB\-t\fR[\fIfile\fR], \fB\-\-timing\fR[=\fIfile\fR] Output timing data to standard error, or to .I file when given. This data contains two fields, separated by a space. The first diff --git a/term-utils/script.c b/term-utils/script.c index 814ee4961..ffc7017b9 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -164,15 +164,15 @@ 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" - " -q, --quiet be quiet\n" - " -t, --timing[=] output timing data to stderr (or to FILE)\n" + 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" + " -q, --quiet be quiet\n" + " -t[], --timing[=] output timing data to stderr or to FILE\n" ), out); - printf(USAGE_HELP_OPTIONS(25)); + printf(USAGE_HELP_OPTIONS(31)); printf(USAGE_MAN_TAIL("script(1)")); exit(EXIT_SUCCESS); -- cgit v1.2.3-55-g7522