gbranden pushed a commit to branch master
in repository groff.
commit dd35c890331d9fb840b17a9550997b07f32291f8
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Aug 2 09:15:36 2025 -0500
[pfbtops]: Improve usage message upon `--help`.
* src/utils/pfbtops/pfbtops.c (usage): Summarize purpose of command when
help is requested.
---
ChangeLog | 7 +++++++
src/utils/pfbtops/pfbtops.c | 9 ++++++++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index d5cfbc86d..8307ce9f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-08-02 G. Branden Robinson <[email protected]>
+
+ [pfbtops]: Improve usage message upon `--help`.
+
+ * src/utils/pfbtops/pfbtops.c (usage): Summarize purpose of
+ command when help is requested.
+
2025-08-02 G. Branden Robinson <[email protected]>
[hpftodit]: Improve usage message upon `--help`.
diff --git a/src/utils/pfbtops/pfbtops.c b/src/utils/pfbtops/pfbtops.c
index 77beb284c..f3b85f2cd 100644
--- a/src/utils/pfbtops/pfbtops.c
+++ b/src/utils/pfbtops/pfbtops.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992-2024 Free Software Foundation, Inc.
+/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
Written by James Clark ([email protected])
This file is part of groff.
@@ -54,6 +54,13 @@ 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"
+"Translate a PostScript Type 1 font in Printer Font Binary (PFB) format"
+"\n"
+"to Printer Font ASCII (PFA) format. See the pfbtops(1) manual page."
+"\n",
+ stream);
}
static void get_text(int n)
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit