(self, opt_str)
| 1327 | return group |
| 1328 | |
| 1329 | def get_option_group(self, opt_str): |
| 1330 | option = (self._short_opt.get(opt_str) or |
| 1331 | self._long_opt.get(opt_str)) |
| 1332 | if option and option.container is not self: |
| 1333 | return option.container |
| 1334 | return None |
| 1335 | |
| 1336 | |
| 1337 | # -- Option-parsing methods ---------------------------------------- |