Same as cli, but also exit the program with status equal to the return value of main. main must return an integer for this to be used. None is considered 0.
(self, *args, **kwargs)
| 236 | return self._do_main(vars(args)) |
| 237 | |
| 238 | def cli(self, *args, **kwargs): |
| 239 | ''' |
| 240 | Same as cli, but also exit the program with status equal to the return value of main. |
| 241 | main must return an integer for this to be used. |
| 242 | |
| 243 | None is considered 0. |
| 244 | ''' |
| 245 | exit_status = self.cli_noexit(*args, **kwargs) |
| 246 | if exit_status is None: |
| 247 | exit_status = 0 |
| 248 | sys.exit(exit_status) |
| 249 | |
| 250 | def get_cli(self, **kwargs): |
| 251 | ''' |
no test coverage detected