瀏覽代碼

fix wording of error message for unsupported switches

Gil Magno 3 年之前
父節點
當前提交
ace5f97a27
共有 1 個文件被更改,包括 2 次插入2 次删除
  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();