(self, option_list, add_help=True)
| 1233 | help=_("show program's version number and exit")) |
| 1234 | |
| 1235 | def _populate_option_list(self, option_list, add_help=True): |
| 1236 | if self.standard_option_list: |
| 1237 | self.add_options(self.standard_option_list) |
| 1238 | if option_list: |
| 1239 | self.add_options(option_list) |
| 1240 | if self.version: |
| 1241 | self._add_version_option() |
| 1242 | if add_help: |
| 1243 | self._add_help_option() |
| 1244 | |
| 1245 | def _init_parsing_state(self): |
| 1246 | # These are set in parse_args() for the convenience of callbacks. |
no test coverage detected