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

Method _build_argument_table

awscli/clidriver.py:504–520  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

502 injector.inject_aliases(command_table, parser)
503
504 def _build_argument_table(self):
505 argument_table = OrderedDict()
506 cli_data = self._get_cli_data()
507 cli_arguments = cli_data.get('options', None)
508 for option in cli_arguments:
509 option_params = copy_kwargs(cli_arguments[option])
510 cli_argument = self._create_cli_argument(option, option_params)
511 cli_argument.add_to_arg_table(argument_table)
512 # Then the final step is to send out an event so handlers
513 # can add extra arguments or modify existing arguments.
514 self.session.emit(
515 'building-top-level-params',
516 session=self.session,
517 argument_table=argument_table,
518 driver=self,
519 )
520 return argument_table
521
522 def _create_cli_argument(self, option_name, option_params):
523 return CustomArgument(

Callers 1

_get_argument_tableMethod · 0.95

Calls 5

_get_cli_dataMethod · 0.95
_create_cli_argumentMethod · 0.95
copy_kwargsFunction · 0.90
add_to_arg_tableMethod · 0.45
emitMethod · 0.45

Tested by

no test coverage detected