phacility/phabricator · error · PhutilArgumentUsageException
You can not "--list" and revoke credentials (with "--from" o
Error message
You can not "--list" and revoke credentials (with "--from" or "--everywhere") in the same operation.
What it means
Error "You can not "--list" and revoke credentials (with "--from" or "--everywhere") in the same operation." thrown in phacility/phabricator.
Source
Thrown at src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php:98
$types = $all_types;
} else {
if (empty($all_types[$type])) {
throw new PhutilArgumentUsageException(
pht(
'Credential type "%s" is not valid. Valid credential types '.
'are: %s.',
$type,
implode(', ', array_keys($all_types))));
}
$types = array($all_types[$type]);
}
$is_everywhere = $args->getArg('everywhere');
$from = $args->getArg('from');
if ($is_list) {
if ($from !== null || $is_everywhere) {
throw new PhutilArgumentUsageException(
pht(
'You can not "--list" and revoke credentials (with "--from" or '.
'"--everywhere") in the same operation.'));
}
}
if ($is_list) {
$last_key = last_key($types);
foreach ($types as $key => $type) {
echo tsprintf(
"**%s** (%s)\n\n",
$type->getRevokerKey(),
$type->getRevokerName());
id(new PhutilConsoleBlock())
->addParagraph(tsprintf('%B', $type->getRevokerDescription()))
->draw();
}View on GitHub (pinned to 5720a38cfe)
When it happens
Trigger: Thrown at src/applications/auth/management/PhabricatorAuthManagementRevokeWorkflow.php:98 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/531775eab19c86c7.
Report an issue: GitHub.