The initial parser context, aka core program flags. The specific arguments contained therein will differ depending on whether a bundled namespace was specified in `.__init__`. .. versionadded:: 1.0
(self)
| 657 | |
| 658 | @property |
| 659 | def initial_context(self) -> ParserContext: |
| 660 | """ |
| 661 | The initial parser context, aka core program flags. |
| 662 | |
| 663 | The specific arguments contained therein will differ depending on |
| 664 | whether a bundled namespace was specified in `.__init__`. |
| 665 | |
| 666 | .. versionadded:: 1.0 |
| 667 | """ |
| 668 | args = self.core_args() |
| 669 | if self.namespace is None: |
| 670 | args += self.task_args() |
| 671 | return ParserContext(args=args) |
| 672 | |
| 673 | def print_version(self) -> None: |
| 674 | print("{} {}".format(self.name, self.version or "unknown")) |
nothing calls this directly
no test coverage detected