phacility/phabricator · error · PhutilArgumentUsageException

Specify an activity to mark as completed.

Error message

Specify an activity to mark as completed.

What it means

Error "Specify an activity to mark as completed." thrown in phacility/phabricator.

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)

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.