summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorG. Branden Robinson <g.branden.robinson@gmail.com>2022-10-22 13:28:14 -0500
committerG. Branden Robinson <g.branden.robinson@gmail.com>2022-10-23 17:19:50 -0500
commitf1be3680753760c9c049893a109857a47bbbeb6e (patch)
tree246bed20f1b86a442786545923f18793dddf6276 /src/utils
parent688bbd64893dc145687370669fb53d9b8658edea (diff)
downloadgroff-git-f1be3680753760c9c049893a109857a47bbbeb6e.tar.gz
[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.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/lkbib/lkbib.cpp7
1 files changed, 5 insertions, 2 deletions
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)