| 729 | raise Exit("Can't find any collection named {!r}!".format(e.name)) |
| 730 | |
| 731 | def _update_core_context( |
| 732 | self, context: ParserContext, new_args: Dict[str, Any] |
| 733 | ) -> None: |
| 734 | # Update core context w/ core_via_task args, if and only if the |
| 735 | # via-task version of the arg was truly given a value. |
| 736 | # TODO: push this into an Argument-aware Lexicon subclass and |
| 737 | # .update()? |
| 738 | for key, arg in new_args.items(): |
| 739 | if arg.got_value: |
| 740 | context.args[key]._value = arg._value |
| 741 | |
| 742 | def _make_parser(self) -> Parser: |
| 743 | return Parser( |