(self, args, namespace=None)
| 223 | """ |
| 224 | |
| 225 | def parse_known_args(self, args, namespace=None): |
| 226 | parsed_args, remaining = super().parse_known_args(args, namespace) |
| 227 | if getattr(parsed_args, 'subcommand', None) is not None: |
| 228 | new_args = self._remove_subcommand(args, parsed_args) |
| 229 | return new_args, parsed_args.subcommand |
| 230 | return None |
| 231 | |
| 232 | def _remove_subcommand(self, args, parsed_args): |
| 233 | # We want to remove only the subcommand from the args list |
no test coverage detected