chiark / gitweb /
Fix up --same --upload thing to only apply to --same
[ypp-sc-tools.db-test.git] / pctb / convert.c
index 6f40f94cd0c5cc7d1772a1d4cee9d78047b5539c..f3b87fea193de43d825417e706ec0ecad1175404 100644 (file)
@@ -297,6 +297,8 @@ int main(int argc, char **argv) {
     progress_log("OK for you to move the mouse now.");
   }
   if (o_mode & mf_readscreenshot) {
+    if ((o_flags & ff_upload) && !(o_flags & ff_testservers))
+      badusage("must not reuse screenshots for upload to live PCTB database");
     open_screenshot_file("r");
     if (o_flags & ff_singlepage) read_one_screenshot();
     else read_screenshots();