Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TraceableCommand.php

function TraceableCommand::addOption

Overrides Command::addOption

File

vendor/symfony/console/Command/TraceableCommand.php, line 219

Class

TraceableCommand
@internal

Namespace

Symfony\Component\Console\Command

Code

public function addOption(string $name, string|array|null $shortcut = null, ?int $mode = null, string $description = '', mixed $default = null, array|\Closure $suggestedValues = []) : static {
    $this->command
        ->addOption($name, $shortcut, $mode, $description, $default, $suggestedValues);
    return $this;
}
RSS feed
Powered by Drupal