def _configure_using_fluent_definition(self):
        definition = Parser.parse(self.signature)

        super(Command, self).__init__(definition['name'])

        for argument in definition['arguments']:
            if self.validation and argument.get_name() in self.validation:
                argument.set_validator(self.validation[argument.get_name()])

            self.get_definition().add_argument(argument)

        for option in definition['options']:
            if self.validation and '--%s' % option.get_name() in self.validation:
                option.set_validator(self.validation['--%s' % option.get_name()])

            self.get_definition().add_option(option)
Configure the console command using a fluent definition.
dataset/ETHPy150Open sdispater/cleo/cleo/commands/command.py/Command._configure_using_fluent_definition