{"record":{"id":"561ad2a222941e10","repo":"phacility/phabricator","slug":"specify-all-to-affect-everything-or-a-list-of","errorCode":null,"errorMessage":"Specify \"--all\" to affect everything, or a list of specific commits or repositories to affect.","messagePattern":"Specify \"--all\" to affect everything, or a list of specific commits or repositories to affect\\.","errorType":"exception","errorClass":"PhutilArgumentUsageException","httpStatus":null,"severity":"error","filePath":"src/applications/audit/management/PhabricatorAuditManagementWorkflow.php","lineNumber":28,"sourceCode":"        'name' => 'all',\n        'help' => pht('Update all commits in all repositories.'),\n      ),\n      array(\n        'name' => 'objects',\n        'wildcard' => true,\n        'help' => pht('Update named commits and repositories.'),\n      ),\n    );\n  }\n\n  protected function loadCommitsWithConstraints(PhutilArgumentParser $args) {\n    $viewer = $this->getViewer();\n\n    $all = $args->getArg('all');\n    $names = $args->getArg('objects');\n\n    if (!$names && !$all) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'Specify \"--all\" to affect everything, or a list of specific '.\n          'commits or repositories to affect.'));\n    } else if ($names && $all) {\n      throw new PhutilArgumentUsageException(\n        pht(\n          'Specify either a list of objects to affect or \"--all\", but not '.\n          'both.'));\n    }\n\n    if ($all) {\n      $objects = new LiskMigrationIterator(new PhabricatorRepository());\n    } else {\n      $query = id(new PhabricatorObjectQuery())\n        ->setViewer($viewer)\n        ->withNames($names);\n\n      $query->execute();","sourceCodeStart":10,"sourceCodeEnd":46,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/audit/management/PhabricatorAuditManagementWorkflow.php#L10-L46","documentation":"Guard in loadCommitsWithConstraints(): the audit management command was invoked with neither --all nor any object names on the wildcard, so the workflow has no scope to operate on and refuses to continue.","triggerScenarios":"Thrown at src/applications/audit/management/PhabricatorAuditManagementWorkflow.php:28 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass --all to affect every commit in every repository","Pass one or more commit or repository monograms (e.g. rXYZ or rXabcdef) as arguments","Run the command with --help to review accepted scope arguments"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","contentChangedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}