groff-commit
[Top][All Lists]
Advanced

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

[groff] 45/72: [lookbib]: Update usage message.


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

gbranden pushed a commit to branch master
in repository groff.

commit 835169d55164098c4c987483c1ae2ad7c4ad96ef
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Oct 22 13:52:05 2022 -0500

    [lookbib]: Update usage message.
    
    * src/utils/lookbib/lookbib.cpp (usage): Update usage message.  Present
      different modes of operation on separate output lines.  Document
      --version and --help options.
---
 ChangeLog                     | 1 +
 src/utils/lookbib/lookbib.cpp | 7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index b5c8c9618..06076a3c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,7 @@
        * src/utils/hpftodit/hpftodit.cpp (usage):
        * src/utils/indxbib/indxbib.cpp (usage):
        * src/utils/lkbib/lkbib.cpp (usage):
+       * src/utils/lookbib/lookbib.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/lookbib/lookbib.cpp b/src/utils/lookbib/lookbib.cpp
index 9ffa85028..e3e95c058 100644
--- a/src/utils/lookbib/lookbib.cpp
+++ b/src/utils/lookbib/lookbib.cpp
@@ -38,8 +38,11 @@ extern "C" const char *Version_string;
 
 static void usage(FILE *stream)
 {
-  fprintf(stream, "usage: %s [-v] [-i XYZ] [-t N] database ...\n",
-         program_name);
+  fprintf(stream,
+         "usage: %s [-i XYZ] [-t N] database ...\n"
+         "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]