phacility/phabricator · error · PhutilArgumentUsageException
You have selected multiple operation modes
Error message
You have selected multiple operation modes (%s). Choose a single mode to operate in.
What it means
CLI argument validation failure in the files integrity management tool: more than one mutually exclusive mode flag (--compute, --overwrite, or implicit verify) was supplied, and the workflow cannot decide which operation to run.
Solutions
- Pass only one of --compute or --overwrite; omitting both selects the default verify mode
- Inspect the exact modes listed in the message to see which flags collided
Defensive patterns
Strategy: validation
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.
Appendix: 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)