From: Benno Schulenberg Date: Mon, 24 Feb 2025 13:08:39 +0000 (+0100) Subject: scriptlive: reduce two usage synopses to one simple one X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=921b4fe498edde7d1d5c280d6d50050d18d97b44;p=thirdparty%2Futil-linux.git scriptlive: reduce two usage synopses to one simple one No synopsis can show all possible permutattions of arguments and options, so do not even try and just give the most basic form, without unneeded -t, -I, or -B. Also, use angle brackets to show that and are placeholders. Signed-off-by: Benno Schulenberg --- diff --git a/term-utils/scriptlive.1.adoc b/term-utils/scriptlive.1.adoc index 1efb429bb..58aeb4ce1 100644 --- a/term-utils/scriptlive.1.adoc +++ b/term-utils/scriptlive.1.adoc @@ -13,7 +13,7 @@ scriptlive - re-run session typescripts, using timing information == SYNOPSIS -*scriptlive* [options] [*-t*] _timingfile_ [*-I*|*-B*] _typescript_ +*scriptlive* [options] _timingfile_ _typescript_ == DESCRIPTION diff --git a/term-utils/scriptlive.c b/term-utils/scriptlive.c index 1b0bf96cb..e4a3434ed 100644 --- a/term-utils/scriptlive.c +++ b/term-utils/scriptlive.c @@ -54,10 +54,7 @@ usage(void) FILE *out = stdout; fputs(USAGE_HEADER, out); fprintf(out, - _(" %s [options]\n"), - program_invocation_short_name); - fprintf(out, - _(" %s [-t] timingfile [-I|-B] typescript\n"), + _(" %s [options] \n"), program_invocation_short_name); fputs(USAGE_SEPARATOR, out); @@ -74,6 +71,8 @@ usage(void) fputs(_(" -d, --divisor speed up or slow down execution with time divisor\n"), out); fputs(_(" -E, --echo echo input in session (auto, always or never)\n"), out); fputs(_(" -m, --maxdelay wait at most this many seconds between updates\n"), out); + + fputs(USAGE_SEPARATOR, out); fprintf(out, USAGE_HELP_OPTIONS(25)); fprintf(out, USAGE_MAN_TAIL("scriptlive(1)"));