[CLI] Add config `-c` argument (#12039)

This commit is contained in:
Tianshu Wang 2022-02-23 16:19:01 +08:00 committed by GitHub
parent 550d3a640d
commit 1ef34c5ffd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ class LightningArgumentParser(ArgumentParser):
)
super().__init__(*args, **kwargs)
self.add_argument(
"--config", action=ActionConfigFile, help="Path to a configuration file in json or yaml format."
"-c", "--config", action=ActionConfigFile, help="Path to a configuration file in json or yaml format."
)
self.callback_keys: List[str] = []
# separate optimizers and lr schedulers to know which were added