public function beginCommand($name)
    {
        $commandConfig = new CommandConfig($name, $this);

        // The name is dynamic, so don't store by name
        $this->commandConfigs[] = $commandConfig;

        return $commandConfig;
    }
public function beginCommand($name)
    {
        $commandConfig = new CommandConfig($name, $this);

        // The name is dynamic, so don't store by name
        $this->commandConfigs[] = $commandConfig;

        return $commandConfig;
    }
public function beginCommand ( $ name ) { $ commandConfig = new CommandConfig ( $ name , $ this ) ; // The name is dynamic, so don't store by name $ this -> commandConfigs [ ] = $ commandConfig ; return $ commandConfig ; }
Starts a configuration block for a command.

The configuration of the command is returned by this method. You can use
the fluent interface to configure the sub-command before jumping back to
this configuration with {@link CommandConfig::end()}:

```php
protected function configure()
{
$this
->setName('server')
->setDescription('List and manage servers')

->beginCommand('add')
->setDescription('Add a server')
->addArgument('host', Argument::REQUIRED)
->addOption('port', 'p', Option::VALUE_OPTIONAL, null, 80)
->end()

// ...
;
}
```

@param string $name The name of the command.

@return CommandConfig The command configuration.

@see editCommand()
Starts a configuration block for a command .