gbranden pushed a commit to branch master
in repository groff.
commit ceb3e68f282b2353d901ce837bd847d244c300c3
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Sep 4 06:10:12 2024 -0500
[troff]: Fix usage message inaccuracy.
* src/roff/troff/input.cpp (usage): De-document `-h` as synonym for
`--help`. That's not true for GNU troff.
---
ChangeLog | 5 +++++
src/roff/troff/input.cpp | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 20c62455b..e031b7167 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-09-04 G. Branden Robinson <[email protected]>
+
+ * src/roff/troff/input.cpp (usage): De-document `-h` as synonym
+ for `--help`. That's not true for GNU troff.
+
2024-09-04 G. Branden Robinson <[email protected]>
[troff]: Trivially refactor, renaming internal symbols matching
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index c329a1bab..c6a8c72ae 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -8613,7 +8613,7 @@ void usage(FILE *stream, const char *prog)
" [-T output-device] [-w warning-category] [-W warning-category]"
" [file ...]\n"
"usage: %s {-v | --version}\n"
-"usage: %s {-h | --help}\n",
+"usage: %s --help\n",
prog, prog, prog);
if (stdout == stream) {
fputs(
_______________________________________________
Groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit