(self)
| 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( |
no test coverage detected