[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 44/72: [lkbib]: Update usage message.
From: |
G. Branden Robinson |
Subject: |
[groff] 44/72: [lkbib]: Update usage message. |
Date: |
Sun, 23 Oct 2022 22:25:41 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit f1be3680753760c9c049893a109857a47bbbeb6e
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Oct 22 13:28:14 2022 -0500
[lkbib]: Update usage message.
* src/utils/lkbib/lkbib.cpp (usage): Update usage message. Present
different modes of operation on separate output lines. Sort options
in English lexicographic order. Document --version and --help
options.
Also express operand in the singular.
---
ChangeLog | 1 +
src/utils/lkbib/lkbib.cpp | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a810706a5..b5c8c9618 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,7 @@
* src/utils/addftinfo/addftinfo.cpp (usage):
* src/utils/hpftodit/hpftodit.cpp (usage):
* src/utils/indxbib/indxbib.cpp (usage):
+ * src/utils/lkbib/lkbib.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/lkbib/lkbib.cpp b/src/utils/lkbib/lkbib.cpp
index 93af8b8ae..6865ebbda 100644
--- a/src/utils/lkbib/lkbib.cpp
+++ b/src/utils/lkbib/lkbib.cpp
@@ -34,8 +34,11 @@ extern "C" const char *Version_string;
static void usage(FILE *stream)
{
- fprintf(stream, "usage: %s [-nv] [-p database] [-i XYZ] [-t N] keys ...\n",
- program_name);
+ fprintf(stream,
+ "usage: %s [-n] [-p database] [-i XYZ] [-t N] key ...\n"
+ "usage: %s {-v | --version}\n"
+ "usage: %s --help\n",
+ program_name, program_name, program_name);
}
int main(int argc, char **argv)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 44/72: [lkbib]: Update usage message.,
G. Branden Robinson <=