MCPcopy Index your code
hub / github.com/aws/aws-cli / create_parser

Method create_parser

tests/unit/test_alias.py:465–475  ·  view source on GitHub ↗
(self, command_table, extra_params=None)

Source from the content-addressed store, hash-verified

463 return command_table
464
465 def create_parser(self, command_table, extra_params=None):
466 parser = MainArgParser(
467 command_table=command_table,
468 version_string='version',
469 description='description',
470 argument_table={},
471 )
472 if extra_params:
473 for extra_param in extra_params:
474 parser.add_argument('--' + extra_param)
475 return parser
476
477 def test_alias_with_only_service_command(self):
478 alias_value = 'myservice'

Calls 1

MainArgParserClass · 0.90

Tested by

no test coverage detected