That is done in the `getSynopsis` method of `Symfony\Component\Console\Input\InputDefinition`.