{"record":{"id":"7be0bc2032e81c8b","repo":"phacility/phabricator","slug":"you-have-selected-multiple-operation-modes-s-c","errorCode":null,"errorMessage":"You have selected multiple operation modes (%s). Choose a single mode to operate in.","messagePattern":"You have selected multiple operation modes \\((.+?)\\)\\. Choose a single mode to operate in\\.","errorType":"console","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/files/management/PhabricatorFilesManagementIntegrityWorkflow.php","lineNumber":82,"sourceCode":"    }\n\n    $is_compute = $args->getArg('compute');\n    if ($is_compute) {\n      $modes[] = 'compute';\n    }\n\n    $is_overwrite = $args->getArg('overwrite');\n    if ($is_overwrite) {\n      $modes[] = 'overwrite';\n    }\n\n    $is_verify = !$modes;\n    if ($is_verify) {\n      $modes[] = 'verify';\n    }\n\n    if (count($modes) > 1) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'You have selected multiple operation modes (%s). Choose a '.\n          'single mode to operate in.',\n          implode(', ', $modes)));\n    }\n\n    $is_force = $args->getArg('force');\n    if (!$is_force) {\n      $prompt = null;\n      if ($is_strip) {\n        $prompt = pht(\n          'Stripping integrity hashes is dangerous and makes files '.\n          'vulnerable to corruption or tampering.');\n      }\n\n      if ($is_corrupt) {\n        $prompt = pht(\n          'Corrupting integrity hashes will prevent files from being '.","sourceCodeStart":64,"sourceCodeEnd":100,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/files/management/PhabricatorFilesManagementIntegrityWorkflow.php#L64-L100","documentation":"Error \"You have selected multiple operation modes (%s). Choose a single mode to operate in.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/files/management/PhabricatorFilesManagementIntegrityWorkflow.php:82 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T13:17:26.733Z"}