Create an instance of EngineArgs from command line arguments.
(cls, args: FlexibleArgumentParser, skip_port_check=False)
| 1348 | |
| 1349 | @classmethod |
| 1350 | def from_cli_args(cls, args: FlexibleArgumentParser, skip_port_check=False) -> "EngineArgs": |
| 1351 | """ |
| 1352 | Create an instance of EngineArgs from command line arguments. |
| 1353 | """ |
| 1354 | args_dict = {} |
| 1355 | for field in dataclass_fields(cls): |
| 1356 | if hasattr(args, field.name): |
| 1357 | args_dict[field.name] = getattr(args, field.name) |
| 1358 | return cls(**args_dict, skip_port_check=skip_port_check) |
| 1359 | |
| 1360 | def create_speculative_config(self) -> SpeculativeConfig: |
| 1361 | """ """ |
no outgoing calls
no test coverage detected