/**
* Adds configuration for a sub-command.
*
* @param SubCommandConfig $config The sub-command configuration.
*
* @return static The current instance.
*
* @see beginSubCommand()
*/
public function addSubCommandConfig(SubCommandConfig $config)
{
// The name is dynamic, so don't store by name
$this->subCommandConfigs[] = $config;
$config->setParentConfig($this);
return $this;
}