groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 40/72: [grotty]: Update usage message.


From: G. Branden Robinson
Subject: [groff] 40/72: [grotty]: Update usage message.
Date: Sun, 23 Oct 2022 22:25:40 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 47735aadf50c579d88ad14a2413fe96d89c6f173
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Oct 22 12:41:04 2022 -0500

    [grotty]: Update usage message.
    
    * src/devices/grotty/tty.cpp (usage): Update usage message.  Present
      different modes of operation on separate output lines.  Sort options
      in English lexicographic order.
---
 ChangeLog                  | 1 +
 src/devices/grotty/tty.cpp | 6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 42873d268..30c378aaa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
        * src/devices/grolbp/lbp.cpp (usage):
        * src/devices/grolj4/lj4.cpp (usage):
        * src/devices/grops/ps.cpp (usage):
+       * src/devices/grotty/tty.cpp (usage):
        * src/preproc/eqn/main.cpp (usage):
        * src/preproc/grn/main.cpp (usage):
        * src/preproc/pic/main.cpp (usage):
diff --git a/src/devices/grotty/tty.cpp b/src/devices/grotty/tty.cpp
index ea2f094ba..bb39512e2 100644
--- a/src/devices/grotty/tty.cpp
+++ b/src/devices/grotty/tty.cpp
@@ -1021,8 +1021,10 @@ int main(int argc, char **argv)
 
 static void usage(FILE *stream)
 {
-  fprintf(stream, "usage: %s [-bBcdfhioruUv] [-F dir] [files ...]\n",
-         program_name);
+  fprintf(stream, "usage: %s [-bBcdfhioruUv] [-F dir] [file ...]\n"
+         "usage: %s {-v | --version}\n"
+         "usage: %s --help\n",
+         program_name, program_name, program_name);
 }
 
 // Local Variables:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]