(self, args, arg_table)
| 977 | parser.add_argument('help', nargs='?') |
| 978 | |
| 979 | def _build_call_parameters(self, args, arg_table): |
| 980 | # We need to convert the args specified on the command |
| 981 | # line as valid **kwargs we can hand to botocore. |
| 982 | service_params = {} |
| 983 | # args is an argparse.Namespace object so we're using vars() |
| 984 | # so we can iterate over the parsed key/values. |
| 985 | parsed_args = vars(args) |
| 986 | for arg_object in arg_table.values(): |
| 987 | py_name = arg_object.py_name |
| 988 | if py_name in parsed_args: |
| 989 | value = parsed_args[py_name] |
| 990 | value = self._unpack_arg(arg_object, value) |
| 991 | arg_object.add_to_params(service_params, value) |
| 992 | return service_params |
| 993 | |
| 994 | def _unpack_arg(self, cli_argument, value): |
| 995 | # Unpacks a commandline argument into a Python value by firing the |
no test coverage detected