List all available args of the current model.
(cls, print=True)
| 270 | |
| 271 | @classmethod |
| 272 | def list_avail_args(cls, print=True): |
| 273 | '''List all available args of the current model.''' |
| 274 | parser = argparse.ArgumentParser() |
| 275 | from sat.arguments import add_model_config_args |
| 276 | add_model_config_args(parser) |
| 277 | # add args of the current model |
| 278 | if hasattr(cls, 'add_model_specific_args'): |
| 279 | cls.add_model_specific_args(parser) |
| 280 | if print: |
| 281 | from sat.helpers import print_parser |
| 282 | print_parser(parser) |
| 283 | return parser |
| 284 | |
| 285 | @classmethod |
| 286 | def get_args(cls, **kwargs): |