phacility/phabricator · error · PhutilArgumentUsageException
Specify exactly one repository to unpublish.
Error message
Specify exactly one repository to unpublish.
What it means
Error "Specify exactly one repository to unpublish." thrown in phacility/phabricator.
Source
Thrown at src/applications/repository/management/PhabricatorRepositoryManagementUnpublishWorkflow.php:39
array(
'name' => 'dry-run',
'help' => pht('Do not perform any writes.'),
),
array(
'name' => 'repositories',
'wildcard' => true,
),
));
}
public function execute(PhutilArgumentParser $args) {
$viewer = $this->getViewer();
$is_force = $args->getArg('force');
$is_dry_run = $args->getArg('dry-run');
$repositories = $this->loadLocalRepositories($args, 'repositories');
if (count($repositories) !== 1) {
throw new PhutilArgumentUsageException(
pht('Specify exactly one repository to unpublish.'));
}
$repository = head($repositories);
if (!$is_force) {
echo tsprintf(
"%s\n",
pht(
'This script will unpublish all feed stories and notifications '.
'which a repository generated during import. This action can not '.
'be undone.'));
$prompt = pht(
'Permanently unpublish "%s"?',
$repository->getDisplayName());
if (!phutil_console_confirm($prompt)) {
throw new PhutilArgumentUsageException(
pht('User aborted workflow.'));View on GitHub (pinned to 5720a38cfe)
When it happens
Trigger: Thrown at src/applications/repository/management/PhabricatorRepositoryManagementUnpublishWorkflow.php:39 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/a9d4ead90528d079.
Report an issue: GitHub.