(self, args)
| 238 | self._driver = driver |
| 239 | |
| 240 | def main(self, args): |
| 241 | try: |
| 242 | rc = self._do_main(args) |
| 243 | except BaseException as e: |
| 244 | LOG.debug("Exception caught in AWSCLIEntryPoint", exc_info=True) |
| 245 | return self._error_handler.handle_exception( |
| 246 | e, |
| 247 | stdout=get_stdout_text_writer(), |
| 248 | stderr=get_stderr_text_writer(), |
| 249 | ) |
| 250 | |
| 251 | HISTORY_RECORDER.record('CLI_RC', rc, 'CLI') |
| 252 | return rc |
| 253 | |
| 254 | def _add_autoprompt_to_user_agent(self, driver, prompt_mode): |
| 255 | add_metadata_component_to_user_agent_extra( |