diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-10-23 11:48:51 -0500 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-10-23 17:19:50 -0500 |
commit | b484d4f0ddba9683bddaf6af89c3cc711fcbcc7d (patch) | |
tree | a500328d831df096697a11d8c979e13b393c58e7 /src | |
parent | f719ffe5ec8f80c62f66859b65685e99782d1cd7 (diff) | |
download | groff-git-b484d4f0ddba9683bddaf6af89c3cc711fcbcc7d.tar.gz |
[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.
Diffstat (limited to 'src')
-rw-r--r-- | src/preproc/html/pre-html.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
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" |