phacility/phabricator · error · PhutilArgumentUsageException
You can not operate on all files with "--all" and also opera
Error message
You can not operate on all files with "--all" and also operate on a subset of files by naming them explicitly or using constraint flags like "--from-engine".
What it means
Error "You can not operate on all files with "--all" and also operate on a subset of files by naming them explicitly or using constraint flags like "--from-engine"." thrown in phacility/phabricator.
Source
Thrown at src/applications/files/management/PhabricatorFilesManagementWorkflow.php:42
protected function buildIterator(PhutilArgumentParser $args) {
$viewer = $this->getViewer();
$is_all = $args->getArg('all');
$names = $args->getArg('names');
$from_engine = $args->getArg('from-engine');
$any_constraint = ($from_engine || $names);
if (!$is_all && !$any_constraint) {
throw new PhutilArgumentUsageException(
pht(
'Specify which files to operate on, or use "--all" to operate on '.
'all files.'));
}
if ($is_all && $any_constraint) {
throw new PhutilArgumentUsageException(
pht(
'You can not operate on all files with "--all" and also operate '.
'on a subset of files by naming them explicitly or using '.
'constraint flags like "--from-engine".'));
}
// If we're migrating specific named files, convert the names into IDs
// first.
$ids = null;
if ($names) {
$files = $this->loadFilesWithNames($names);
$ids = mpull($files, 'getID');
}
$query = id(new PhabricatorFileQuery())
->setViewer($viewer);
if ($ids) {View on GitHub (pinned to 5720a38cfe)
When it happens
Trigger: Thrown at src/applications/files/management/PhabricatorFilesManagementWorkflow.php:42 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/b6e8027e30651b43.
Report an issue: GitHub.