groff-commit
[Top][All Lists]
Advanced

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

[groff] 42/72: [hpftodit]: Update usage message.


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

gbranden pushed a commit to branch master
in repository groff.

commit ab54c40bd4ec61efb110fda79cc0b248f200de2c
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Oct 22 13:13:06 2022 -0500

    [hpftodit]: Update usage message.
    
    * src/utils/hpftodit/hpftodit.cpp (usage): Update usage message.
      Present different modes of operation on separate output lines.  Sort
      options in English lexicographic order.  Document -v, --version,
      --help options.
---
 ChangeLog                       | 1 +
 src/utils/hpftodit/hpftodit.cpp | 8 +++++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e4be5a978..dfb01416c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@
        * src/preproc/soelim/soelim.cpp (usage):
        * src/roff/groff/groff.cpp (synopsis, help):
        * src/utils/addftinfo/addftinfo.cpp (usage):
+       * src/utils/hpftodit/hpftodit.cpp (usage):
        * src/utils/tfmtodit/tfmtodit.cpp (usage):
        * src/utils/xtotroff/xtotroff.c (usage): Update usage message.
        Present different modes of operation on separate output lines.
diff --git a/src/utils/hpftodit/hpftodit.cpp b/src/utils/hpftodit/hpftodit.cpp
index 415dbd53d..f8292e1b4 100644
--- a/src/utils/hpftodit/hpftodit.cpp
+++ b/src/utils/hpftodit/hpftodit.cpp
@@ -384,9 +384,11 @@ static void
 usage(FILE *stream)
 {
   fprintf(stream,
-         "usage: %s [-s] [-a] [-q] [-i n] tfm_file map_file output_font\n"
-         "       %s -d tfm_file [map_file]\n",
-         program_name, program_name);
+"usage: %s [-aqs] [-i n] tfm-file map-file output-font\n"
+"usage: %s -d tfm-file [map-file]\n"
+"usage: %s {-v | --version}\n"
+"usage: %s --help\n",
+         program_name, program_name, program_name, program_name);
 }
 
 static void



reply via email to

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