]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Don’t print “unrecognized option” twice
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 15 Aug 2021 19:27:36 +0000 (21:27 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 16 Aug 2021 18:12:03 +0000 (20:12 +0200)
Fixes an issue introduced in 513c83faaafc3a9848cb4492961104e4f4768247.

src/core/mainoptions.cpp

index 543bfcec1f7d1aee6e533f04aefa82e901e84660..3b61eaa8c402d07a6227f5b02a3561b53743678a 100644 (file)
@@ -333,6 +333,9 @@ process_main_options(int argc, const char* const* argv)
     case TRIM_METHOD:
       trim_lru_mtime = (arg == "ctime");
       break;
+
+    case '?': // unknown option
+      return EXIT_FAILURE;
     }
   }