This method can be used to nicely edit an option command inherited from a
parent configuration using the fluent API:
php
protected function configure()
{
parent::configure();
$this
->editCommand('server')
->editOptionCommand('add')
...
->end()
->end()
...
;
}
public editOptionCommand ( string $name ) : |
||
$name | string | The name of the option command to edit. |
return | The option command configuration. |
public function testEditOptionCommand() { $this->config->addSubCommandConfig($config1 = new OptionCommandConfig('command1', 'a')); $this->assertSame($config1, $this->config->editOptionCommand('command1')); }