[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 24/35: [lkbib]: Describe command if asked for `--help`.
From: |
G. Branden Robinson |
Subject: |
[groff] 24/35: [lkbib]: Describe command if asked for `--help`. |
Date: |
Tue, 10 Dec 2024 16:35:36 -0500 (EST) |
gbranden pushed a commit to branch master
in repository groff.
commit f0af7f4085e3309b3924dfa4aa86d44e6c588bf7
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Dec 9 02:42:35 2024 -0600
[lkbib]: Describe command if asked for `--help`.
* src/utils/lkbib/lkbib.cpp (usage): If asked for `--help`, summarize
command purpose in message.
---
ChangeLog | 5 +++++
src/utils/lkbib/lkbib.cpp | 8 ++++++++
2 files changed, 13 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 615db1c91..ed34d0121 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-12-09 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ * src/utils/lkbib/lkbib.cpp (usage): If asked for `--help`,
+ summarize command purpose in message.
+
2024-12-08 G. Branden Robinson <g.branden.robinson@gmail.com>
[troff]: Disable `cf` request in safer mode.
diff --git a/src/utils/lkbib/lkbib.cpp b/src/utils/lkbib/lkbib.cpp
index 8a486ab7e..2657310b9 100644
--- a/src/utils/lkbib/lkbib.cpp
+++ b/src/utils/lkbib/lkbib.cpp
@@ -45,6 +45,14 @@ static void usage(FILE *stream)
"usage: %s {-v | --version}\n"
"usage: %s --help\n",
program_name, program_name, program_name);
+ if (stdout == stream)
+ fputs("\n"
+"GNU lkbib searches bibliographic databases for references matching\n"
+"all keywords \"key\" and writes any references found to the standard\n"
+"output stream. It reads databases given by -p options and then\n"
+"(unless -n is given) a default database. See the lkbib(1) manual\n"
+"page.\n",
+ stream);
}
int main(int argc, char **argv)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 24/35: [lkbib]: Describe command if asked for `--help`.,
G. Branden Robinson <=