warn when options -a and -T are used together

This commit is contained in:
Erik Auerswald
2025-03-22 18:45:15 +01:00
parent 00312ee70e
commit 7f2a9f3f22
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -3,6 +3,8 @@ Noteworthy Changes in ssocr Releases
Version ?.??.? (????-??-??):
----------------------------
* Print warning when the two options -a, --absolute-threshold and -T,
--iter-threshold are used together because -a inhibits -T
* Improved performance when reading image data via standard input
* Improved performance when using gray_stretch together with -g
* Documentation improvements
+2
View File
@@ -639,6 +639,8 @@ int main(int argc, char **argv)
exit(99);
}
}
if((flags & ABSOLUTE_THRESHOLD) && (flags & DO_ITERATIVE_THRESHOLD))
fprintf(stderr, "%s: warning: -T has no effect due to -a\n", PROG);
if(flags & DEBUG_OUTPUT) {
fprintf(stderr, "================================================================================\n");
fprintf(stderr, "VERSION=%s\n", VERSION);