]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
scriptreplay: reduce two usage synopses to one, and drop the -t from it
authorBenno Schulenberg <bensberg@telfort.nl>
Mon, 24 Feb 2025 13:08:37 +0000 (14:08 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 25 Feb 2025 07:50:57 +0000 (08:50 +0100)
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 <bensberg@telfort.nl>
term-utils/scriptreplay.1.adoc
term-utils/scriptreplay.c

index acfde6ca8b5a66f07d2df59b324bfb0824b8205e..7665d28f813604f1314f9a8d312494f8c932cd1d 100644 (file)
@@ -13,7 +13,7 @@ scriptreplay - play back typescripts, using timing information
 
 == SYNOPSIS
 
-*scriptreplay* [options] [*-t*] _timingfile_ [_typescript_ [_divisor_]]
+*scriptreplay* [options] _timingfile_ [_typescript_ [_divisor_]]
 
 == DESCRIPTION
 
index 5751e1b5206fd3c52c8ca9592afcde8692536c5c..7e1eec7dba857cb8ffea9d9a280a3d3cd6775576 100644 (file)
@@ -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] <timingfile> [<typescript> [<divisor>]]\n"),
+             _(" %s [options] <timingfile> [<typescript> [<divisor>]]\n"),
              program_invocation_short_name);
 
        fputs(USAGE_SEPARATOR, out);
@@ -71,6 +68,8 @@ usage(void)
        fputs(_(" -m, --maxdelay <num>    wait at most this many seconds between updates\n"), out);
        fputs(_(" -x, --stream <name>     stream type (out, in, signal or info)\n"), out);
        fputs(_(" -c, --cr-mode <type>    CR char mode (auto, never, always)\n"), out);
+
+       fputs(USAGE_SEPARATOR, out);
        fprintf(out, USAGE_HELP_OPTIONS(25));
 
        fputs(USAGE_SEPARATOR, out);