phacility/phabricator · error · PhutilArgumentUsageException
Specify an activity to mark as completed.
Error message
Specify an activity to mark as completed.
What it means
Usage guard in the config 'done' CLI workflow: fires when the wildcard 'activities' list is empty. The command marks setup/completion activities as done and requires at least one activity name to act on; the check runs before any activity lookup.
Solutions
- Pass one or more activity identifiers as positional arguments
- Check the setup warning text for the identifier it asks you to acknowledge
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/applications/config/management/PhabricatorConfigManagementDoneWorkflow.php:32 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/aa8ad11a39f5a584.
Report an issue: GitHub.
Appendix: source
Thrown at src/applications/config/management/PhabricatorConfigManagementDoneWorkflow.php:32
'name' => 'force',
'short' => 'f',
'help' => pht(
'Mark activities complete even if there is no outstanding '.
'need to complete them.'),
),
array(
'name' => 'activities',
'wildcard' => true,
),
));
}
public function execute(PhutilArgumentParser $args) {
$is_force = $args->getArg('force');
$activities = $args->getArg('activities');
if (!$activities) {
throw new PhutilArgumentUsageException(
pht('Specify an activity to mark as completed.'));
}
foreach ($activities as $type) {
$activity = id(new PhabricatorConfigManualActivity())->loadOneWhere(
'activityType = %s',
$type);
if (!$activity) {
if ($is_force) {
echo tsprintf(
"%s\n",
pht(
'Activity "%s" did not need to be marked as complete.',
$type));
} else {
throw new PhutilArgumentUsageException(
pht(
'Activity "%s" is not currently marked as required, so there '.View on GitHub (pinned to 5720a38cfe)