[PATCH 5/6] scriptlive: reduce two usage synopses to one simple one

Benno Schulenberg <[email protected]>
Newsgroups org.kernel.vger.util-linux
Message-ID <[email protected]>
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 <[email protected]>
---
 term-utils/scriptlive.1.adoc | 2 +-
 term-utils/scriptlive.c      | 7 +++----
 2 files changed, 4 insertions(+), 5 deletions(-)

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] <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)"));
-- 
2.48.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.