From: Benno Schulenberg Date: Mon, 24 Feb 2025 13:08:37 +0000 (+0100) Subject: scriptreplay: reduce two usage synopses to one, and drop the -t from it X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a408bdc6596a70cffa40d8fa129508de1410b21;p=thirdparty%2Futil-linux.git scriptreplay: reduce two usage synopses to one, and drop the -t from it Those two synopses still did not express several possible forms: scriptreplay -m.1 timings scriptreplay typescript -t timings -m.1 ... So, instead of trying to cover all possibilities, just give the basic form of the command, which is clearest and most helpful. Signed-off-by: Benno Schulenberg --- diff --git a/term-utils/scriptreplay.1.adoc b/term-utils/scriptreplay.1.adoc index acfde6ca8..7665d28f8 100644 --- a/term-utils/scriptreplay.1.adoc +++ b/term-utils/scriptreplay.1.adoc @@ -13,7 +13,7 @@ scriptreplay - play back typescripts, using timing information == SYNOPSIS -*scriptreplay* [options] [*-t*] _timingfile_ [_typescript_ [_divisor_]] +*scriptreplay* [options] _timingfile_ [_typescript_ [_divisor_]] == DESCRIPTION diff --git a/term-utils/scriptreplay.c b/term-utils/scriptreplay.c index 5751e1b52..7e1eec7db 100644 --- a/term-utils/scriptreplay.c +++ b/term-utils/scriptreplay.c @@ -47,10 +47,7 @@ usage(void) FILE *out = stdout; fputs(USAGE_HEADER, out); fprintf(out, - _(" %s [options]\n"), - program_invocation_short_name); - fprintf(out, - _(" %s [-t] [ []]\n"), + _(" %s [options] [ []]\n"), program_invocation_short_name); fputs(USAGE_SEPARATOR, out); @@ -71,6 +68,8 @@ usage(void) fputs(_(" -m, --maxdelay wait at most this many seconds between updates\n"), out); fputs(_(" -x, --stream stream type (out, in, signal or info)\n"), out); fputs(_(" -c, --cr-mode CR char mode (auto, never, always)\n"), out); + + fputs(USAGE_SEPARATOR, out); fprintf(out, USAGE_HELP_OPTIONS(25)); fputs(USAGE_SEPARATOR, out);