You are here

protected function DescriptorCommand2::configure in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Fixtures/DescriptorCommand2.php \Symfony\Component\Console\Tests\Fixtures\DescriptorCommand2::configure()

Configures the current command.

Overrides Command::configure

File

vendor/symfony/console/Tests/Fixtures/DescriptorCommand2.php, line 20

Class

DescriptorCommand2

Namespace

Symfony\Component\Console\Tests\Fixtures

Code

protected function configure() {
  $this
    ->setName('descriptor:command2')
    ->setDescription('command 2 description')
    ->setHelp('command 2 help')
    ->addUsage('-o|--option_name <argument_name>')
    ->addUsage('<argument_name>')
    ->addArgument('argument_name', InputArgument::REQUIRED)
    ->addOption('option_name', 'o', InputOption::VALUE_NONE);
}