[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 48/72: [pre-grohtml]: Update usage message.
From: |
G. Branden Robinson |
Subject: |
[groff] 48/72: [pre-grohtml]: Update usage message. |
Date: |
Sun, 23 Oct 2022 22:25:41 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit b484d4f0ddba9683bddaf6af89c3cc711fcbcc7d
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Oct 23 11:48:51 2022 -0500
[pre-grohtml]: Update usage message.
* src/preproc/html/pre-html.cpp (usage): Update usage message. Document
--version and --help options.
Also downcase metasyntactic variable names; there's no need to shout
them when they're separated from option flag letters by space. Also
remove brackets from "troff-command" and "troff-argument" operands;
these are effectively mandatory.
---
ChangeLog | 1 +
src/preproc/html/pre-html.cpp | 14 ++++++++------
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b649b63b0..e43a06882 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@
* src/devices/xditview/xditview.cpp (usage):
* src/preproc/eqn/main.cpp (usage):
* src/preproc/grn/main.cpp (usage):
+ * src/preproc/html/pre-html.cpp (usage):
* src/preproc/pic/main.cpp (usage):
* src/preproc/preconv/preconv.cpp (usage):
* src/preproc/refer/refer.cpp (usage):
diff --git a/src/preproc/html/pre-html.cpp b/src/preproc/html/pre-html.cpp
index 1acc1ec4b..aef4beaf4 100644
--- a/src/preproc/html/pre-html.cpp
+++ b/src/preproc/html/pre-html.cpp
@@ -1523,12 +1523,14 @@ static char_buffer inputFile;
static void usage(FILE *stream)
{
- fprintf(stream, "usage: %s [-epV] [-a ANTI-ALIASING-TEXT-BITS]"
- " [-D IMAGE-DIRECTORY] [-F FONT-DIRECTORY]"
- " [-g ANTI-ALIASING-GRAPHICS-BITS] [-i RESOLUTION]"
- " [-I IMAGE-STEM] [-o IMAGE-VERTICAL-OFFSET]"
- " [-x HTML-DIALECT] [TROFF-COMMAND] [TROFF-ARGUMENT] ...\n"
- "usage: %s -v\n", program_name, program_name);
+ fprintf(stream,
+"usage: %s [-epV] [-a anti-aliasing-text-bits] [-D image-directory]"
+" [-F font-directory] [-g anti-aliasing-graphics-bits] [-i resolution]"
+" [-I image-stem] [-o image-vertical-offset] [-x html-dialect]"
+" troff-command troff-argument ...\n"
+"usage: %s {-v | --version}\n"
+"usage: %s --help\n",
+ program_name, program_name, program_name);
fputs(
"\n"
"This program is not intended to be executed standalone; it is\n"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 48/72: [pre-grohtml]: Update usage message.,
G. Branden Robinson <=