:param config: `.Config` object to use as the base configuration. Defaults to an anonymous/default `.Config` instance. :param remainder: The invoking program's :ref:`parser remainder ` value, if any was obtained.
(
self,
config: Optional[Config] = None,
remainder: str = "",
)
| 57 | remainder: str |
| 58 | |
| 59 | def __init__( |
| 60 | self, |
| 61 | config: Optional[Config] = None, |
| 62 | remainder: str = "", |
| 63 | ) -> None: |
| 64 | """ |
| 65 | :param config: |
| 66 | `.Config` object to use as the base configuration. |
| 67 | |
| 68 | Defaults to an anonymous/default `.Config` instance. |
| 69 | |
| 70 | :param remainder: |
| 71 | The invoking program's :ref:`parser remainder <remainder>` value, |
| 72 | if any was obtained. |
| 73 | """ |
| 74 | config = config if config is not None else Config() |
| 75 | self._set( |
| 76 | _config=config, |
| 77 | command_prefixes=[], |
| 78 | command_cwds=[], |
| 79 | remainder=remainder, |
| 80 | ) |
| 81 | |
| 82 | @property |
| 83 | def config(self) -> Config: |