Add parser for check_env command.
()
| 82 | |
| 83 | @staticmethod |
| 84 | def add_parser_checkenv(): |
| 85 | """Add parser for check_env command.""" |
| 86 | parser = CLI.subparsers.add_parser('check_env', |
| 87 | formatter_class=DefaultsAndTypesHelpFormatter, |
| 88 | description=CLI.check_env.__doc__, |
| 89 | help=CLI.check_env.__doc__) |
| 90 | parser.set_defaults(run=CLI.check_env) |
| 91 | parser.add_argument('--dump-file', |
| 92 | type=str, |
| 93 | default=None, |
| 94 | help='The file path to save env info. Only ' |
| 95 | 'support file format in `json`, `yml`,' |
| 96 | ' `pkl`') |
| 97 | |
| 98 | @staticmethod |
| 99 | def check_env(args): |