(parser)
| 135 | parse_args.append(str(arg)) |
| 136 | |
| 137 | def get_actions(parser): |
| 138 | # Parser actions and actions from sub-parser choices. |
| 139 | for opt in parser._actions: |
| 140 | if isinstance(opt, _SubParsersAction): |
| 141 | for sub_opt in opt.choices.values(): |
| 142 | yield from get_actions(sub_opt) |
| 143 | else: |
| 144 | yield opt |
| 145 | |
| 146 | parser_actions = list(get_actions(parser)) |
| 147 | mutually_exclusive_required_options = { |