]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
scriptlive: reduce two usage synopses to one simple one
authorBenno Schulenberg <bensberg@telfort.nl>
Mon, 24 Feb 2025 13:08:39 +0000 (14:08 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 25 Feb 2025 07:50:57 +0000 (08:50 +0100)
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 <timingfile> and <typescript>
are placeholders.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
term-utils/scriptlive.1.adoc
term-utils/scriptlive.c

index 1efb429bb6e7d0628d8d63adf5039245f0f6cc75..58aeb4ce13c112ce0d00e4ab4a8b467b0af82adb 100644 (file)
@@ -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
 
index 1b0bf96cbaa4ffff800509bd759b88a184fa4b46..e4a3434ed5bd410201f19b272a71a5b6b6b416d9 100644 (file)
@@ -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] <timingfile> <typescript>\n"),
              program_invocation_short_name);
 
        fputs(USAGE_SEPARATOR, out);
@@ -74,6 +71,8 @@ usage(void)
        fputs(_(" -d, --divisor <num>     speed up or slow down execution with time divisor\n"), out);
        fputs(_(" -E, --echo <when>       echo input in session (auto, always or never)\n"), out);
        fputs(_(" -m, --maxdelay <num>    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)"));