Constructor usable for subprocesses.
(cls, option_dict: Mapping[str, Any], args: list[str])
| 1283 | |
| 1284 | @classmethod |
| 1285 | def fromdictargs(cls, option_dict: Mapping[str, Any], args: list[str]) -> Config: |
| 1286 | """Constructor usable for subprocesses.""" |
| 1287 | config = get_config(args) |
| 1288 | config.option.__dict__.update(option_dict) |
| 1289 | config.parse(args, addopts=False) |
| 1290 | for x in config.option.plugins: |
| 1291 | config.pluginmanager.consider_pluginarg(x) |
| 1292 | return config |
| 1293 | |
| 1294 | def _processopt(self, opt: Argument) -> None: |
| 1295 | if not hasattr(self.option, opt.dest): |