[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 36/72: [addftinfo]: Update usage message.
From: |
G. Branden Robinson |
Subject: |
[groff] 36/72: [addftinfo]: Update usage message. |
Date: |
Sun, 23 Oct 2022 22:25:39 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 22fd0979ed72dcab25a348602ad65081e9b9d542
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Oct 21 22:23:47 2022 -0500
[addftinfo]: Update usage message.
* src/utils/addftinfo/addftinfo.cpp (usage): Update usage message.
Present different modes of operation on separate output lines. Sort
options in English lexicographic order.
---
ChangeLog | 3 ++-
src/utils/addftinfo/addftinfo.cpp | 8 ++++----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a6c0bb848..347683a8a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,7 +8,8 @@
* src/preproc/pic/main.cpp (usage):
* src/preproc/preconv/preconv.cpp (usage):
* src/preproc/soelim/soelim.cpp (usage):
- * src/roff/groff/groff.cpp (synopsis, help): Update usage
+ * src/roff/groff/groff.cpp (synopsis, help):
+ * src/utils/addftinfo/addftinfo.cpp (usage): Update usage
message. Present different modes of operation on separate
output lines. Sort options in English lexicographic order.
diff --git a/src/utils/addftinfo/addftinfo.cpp
b/src/utils/addftinfo/addftinfo.cpp
index 39b8a0f9c..6f4facf7f 100644
--- a/src/utils/addftinfo/addftinfo.cpp
+++ b/src/utils/addftinfo/addftinfo.cpp
@@ -135,10 +135,10 @@ static void usage(FILE *stream)
fprintf(stream, "usage: %s", program_name);
size_t len = sizeof(param_table)/sizeof(param_table[0]);
for (size_t i = 0; i < len; i++)
- fprintf(stream, " [-%s N]", param_table[i].name);
- fprintf(stream, " RESOLUTION UNIT-WIDTH FONT\n");
- fprintf(stream, "usage: %s -v\n", program_name);
- fprintf(stream, "usage: %s --version\n", program_name);
+ fprintf(stream, " [-%s n]", param_table[i].name);
+ fputs(" resolution unit-width font\n", stream);
+ fprintf(stream, "usage: %s {-v | --version}\n"
+ "usage: %s --help\n", program_name, program_name);
}
static void usage()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 36/72: [addftinfo]: Update usage message.,
G. Branden Robinson <=