groff-commit
[Top][All Lists]
Advanced

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

[groff] 37/72: [xtotroff]: Update usage message.


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

gbranden pushed a commit to branch master
in repository groff.

commit b7eb541b2db7264173a3468a5c72a5861d39ab75
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Oct 21 22:33:25 2022 -0500

    [xtotroff]: Update usage message.
    
    * src/utils/xtotroff/xtotroff.c (usage): Update usage message.  Present
      different modes of operation on separate output lines.  Sort options
      in English lexicographic order.
---
 ChangeLog                     | 7 ++++---
 src/utils/xtotroff/xtotroff.c | 5 +++--
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 347683a8a..6781927f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,9 +9,10 @@
        * src/preproc/preconv/preconv.cpp (usage):
        * src/preproc/soelim/soelim.cpp (usage):
        * src/roff/groff/groff.cpp (synopsis, help):
-       * src/utils/addftinfo/addftinfo.cpp (usage): Update usage
-       message.  Present different modes of operation on separate
-       output lines.  Sort options in English lexicographic order.
+       * src/utils/addftinfo/addftinfo.cpp (usage):
+       * src/utils/xtotroff/xtotroff.c (usage): Update usage message.
+       Present different modes of operation on separate output lines.
+       Sort options in English lexicographic order.
 
 2022-10-21  G. Branden Robinson <g.branden.robinson@gmail.com>
 
diff --git a/src/utils/xtotroff/xtotroff.c b/src/utils/xtotroff/xtotroff.c
index 92bc39132..368761fed 100644
--- a/src/utils/xtotroff/xtotroff.c
+++ b/src/utils/xtotroff/xtotroff.c
@@ -272,8 +272,9 @@ static void usage(FILE *stream)
   fprintf(stream,
          "usage: %s [-d destination-directory] [-r resolution]"
          " [-s type-size] font-map\n"
-         "usage: %s -v\n",
-         program_name, program_name);
+         "usage: %s {-v | --version}\n"
+         "usage: %s --help\n",
+         program_name, program_name, program_name);
 }
 
 int main(int argc, char **argv)



reply via email to

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