From 5ceb0eee6676ebed0836f884ba5e3769c24b80d9 Mon Sep 17 00:00:00 2001 From: "G. Branden Robinson" Date: Sat, 22 May 2021 18:14:51 +1000 Subject: [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. --- src/preproc/html/pre-html.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/preproc/html') 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) -- cgit v1.2.1