gbranden pushed a commit to branch master
in repository groff.
commit 688bbd64893dc145687370669fb53d9b8658edea
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Oct 22 13:20:51 2022 -0500
[indxbib]: Update usage message.
* src/utils/indxbib/indxbib.cpp (usage): Update usage message. Document
--help option.
Place ellipsis after optional operand within brackets to better get
across the idea that operands are wholly optional.
---
ChangeLog | 1 +
src/utils/indxbib/indxbib.cpp | 6 ++++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index dfb01416c..a810706a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@
* src/roff/groff/groff.cpp (synopsis, help):
* src/utils/addftinfo/addftinfo.cpp (usage):
* src/utils/hpftodit/hpftodit.cpp (usage):
+ * src/utils/indxbib/indxbib.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/indxbib/indxbib.cpp b/src/utils/indxbib/indxbib.cpp
index 229c226b2..005385341 100644
--- a/src/utils/indxbib/indxbib.cpp
+++ b/src/utils/indxbib/indxbib.cpp
@@ -330,8 +330,10 @@ static void usage(FILE *stream)
"usage: %s [-w] [-c common-words-file] [-d dir] [-f list-file]"
" [-h min-hash-table-size] [-i excluded-fields]"
" [-k max-keys-per-record] [-l min-key-length]"
-" [-n threshold] [-o file] [-t max-key-length] [file] ...\n"
-"usage: %s { -v | --version }\n", program_name, program_name);
+" [-n threshold] [-o file] [-t max-key-length] [file ...]\n"
+"usage: %s {-v | --version}\n"
+"usage: %s --help\n",
+ program_name, program_name, program_name);
}
static void check_integer_arg(char opt, const char *arg, int min, int *res)
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit