Browse Source

fix wording of error message for unsupported switches

Gil Magno 3 years ago
parent
commit
ace5f97a27
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/shared/commandlineparserbase.cc

+ 2 - 2
src/shared/commandlineparserbase.cc

@@ -135,7 +135,7 @@ void CommandLineParserBase::parseArg(int sections, const int argc, const char **
 		}
 		}
 #ifndef __EXTENSIVE_WKHTMLTOPDF_QT_HACK__
 #ifndef __EXTENSIVE_WKHTMLTOPDF_QT_HACK__
 		if (j.value()->qthack)
 		if (j.value()->qthack)
-			fprintf(stderr, "The switch %s, is not support using unpatched qt, and will be ignored.", argv[arg]);
+			fprintf(stderr, "The switch %s is not supported when using unpatched qt and will be ignored.", argv[arg]);
 #endif
 #endif
 		//Skip already handled switch arguments
 		//Skip already handled switch arguments
 		arg += j.value()->argn.size();
 		arg += j.value()->argn.size();
@@ -168,7 +168,7 @@ void CommandLineParserBase::parseArg(int sections, const int argc, const char **
 			}
 			}
 #ifndef __EXTENSIVE_WKHTMLTOPDF_QT_HACK__
 #ifndef __EXTENSIVE_WKHTMLTOPDF_QT_HACK__
  			if (k.value()->qthack)
  			if (k.value()->qthack)
- 				fprintf(stderr, "The switch -%c, is not support using unpatched qt, and will be ignored.", argv[c][j]);
+				fprintf(stderr, "The switch -%c is not supported when using unpatched qt and will be ignored.", argv[c][j]);
 #endif
 #endif
 			//Skip already handled switch arguments
 			//Skip already handled switch arguments
 			arg += k.value()->argn.size();
 			arg += k.value()->argn.size();