phacility/phabricator · error · PhutilArgumentUsageException

You have selected multiple operation modes (%s). Choose a si

Error message

You have selected multiple operation modes (%s). Choose a single mode to operate in.

What it means

Error "You have selected multiple operation modes (%s). Choose a single mode to operate in." thrown in phacility/phabricator.

Source

Thrown at src/applications/files/management/PhabricatorFilesManagementIntegrityWorkflow.php:82

    }

    $is_compute = $args->getArg('compute');
    if ($is_compute) {
      $modes[] = 'compute';
    }

    $is_overwrite = $args->getArg('overwrite');
    if ($is_overwrite) {
      $modes[] = 'overwrite';
    }

    $is_verify = !$modes;
    if ($is_verify) {
      $modes[] = 'verify';
    }

    if (count($modes) > 1) {
      throw new PhutilArgumentUsageException(
        pht(
          'You have selected multiple operation modes (%s). Choose a '.
          'single mode to operate in.',
          implode(', ', $modes)));
    }

    $is_force = $args->getArg('force');
    if (!$is_force) {
      $prompt = null;
      if ($is_strip) {
        $prompt = pht(
          'Stripping integrity hashes is dangerous and makes files '.
          'vulnerable to corruption or tampering.');
      }

      if ($is_corrupt) {
        $prompt = pht(
          'Corrupting integrity hashes will prevent files from being '.

View on GitHub (pinned to 5720a38cfe)

When it happens

Trigger: Thrown at src/applications/files/management/PhabricatorFilesManagementIntegrityWorkflow.php:82 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phacility/phabricator@5720a38cfe (2026-08-21). Data as JSON: /api/errors/7be0bc2032e81c8b. Report an issue: GitHub.