This is very smiliar too https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Console/Input/InputOption.php#L21