gbranden pushed a commit to branch master
in repository groff.
commit 69477e5af253bf6cdc988d98eb89aeb73781ab27
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Aug 2 09:11:53 2025 -0500
[hpftodit]: Improve usage message upon `--help`.
* src/utils/hpftodit/hpftodit.cpp (usage): Summarize purpose of command
when help is requested.
---
ChangeLog | 7 +++++++
src/utils/hpftodit/hpftodit.cpp | 9 ++++++++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index a8100985e..d5cfbc86d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-08-02 G. Branden Robinson <[email protected]>
+
+ [hpftodit]: Improve usage message upon `--help`.
+
+ * src/utils/hpftodit/hpftodit.cpp (usage): Summarize purpose of
+ command when help is requested.
+
2025-08-02 G. Branden Robinson <[email protected]>
[grolbp,grotty,pre-grohtml,preconv,groff]: Slightly refactor.
diff --git a/src/utils/hpftodit/hpftodit.cpp b/src/utils/hpftodit/hpftodit.cpp
index 2cc107640..2b52156d8 100644
--- a/src/utils/hpftodit/hpftodit.cpp
+++ b/src/utils/hpftodit/hpftodit.cpp
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994-2024 Free Software Foundation, Inc.
+/* Copyright (C) 1994-2025 Free Software Foundation, Inc.
Written by James Clark ([email protected])
This file is part of groff.
@@ -406,6 +406,13 @@ usage(FILE *stream)
"usage: %s {-v | --version}\n"
"usage: %s --help\n",
program_name, program_name, program_name, program_name);
+ if (stdout == stream)
+ fputs("\n"
+"Create a font description file for use with a Hewlett-Packard\n"
+"LaserJet 4-series (or newer) printer and the grolj4(1) output driver\n"
+"of groff(1), using data from an HP tagged font metric (TFM) file.\n"
+"See the hpftodit(1) manual page.\n",
+ stream);
}
static void
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit