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@xxxxxxxxxx> --- term-utils/scriptreplay.1.adoc | 2 +- term-utils/scriptreplay.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) 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] <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); -- 2.48.1