diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2021-05-22 18:14:51 +1000 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2021-05-22 19:09:42 +1000 |
commit | 5ceb0eee6676ebed0836f884ba5e3769c24b80d9 (patch) | |
tree | 2def3e5638224ddb69e39e05f71e5d1d5e8de267 /src/preproc/html | |
parent | 4ab064b69782f5e5b473e42b52f1635e06671cc6 (diff) | |
download | groff-git-5ceb0eee6676ebed0836f884ba5e3769c24b80d9.tar.gz |
[grohtml]: Use warning() upon usage errors.
* src/preproc/html/pre-html.cpp (scanArguments):
* src/devices/grohtml/post-html.cpp (main): Use libgroff's warning()
instead of printf() to emit diagnostic about unrecognized paramter to
`-x` option. This sends the diagnostic to the standard error stream
and continues the long process of fixing Savannah #52463.
Diffstat (limited to 'src/preproc/html')
-rw-r--r-- | src/preproc/html/pre-html.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preproc/html/pre-html.cpp b/src/preproc/html/pre-html.cpp index b2eea71f2..72d82028e 100644 --- a/src/preproc/html/pre-html.cpp +++ b/src/preproc/html/pre-html.cpp @@ -1665,7 +1665,7 @@ static int scanArguments(int argc, char **argv) else if (strcmp(optarg, "4") == 0) dialect = html4; else - printf("unsupported html dialect %s (defaulting to html4)\n", optarg); + warning("unsupported HTML dialect: '%1'", optarg); break; case 'y': // handled by post-grohtml (create groff signature) |