From 1ef34c5ffd20a42c687682798eb7db9b1dbcdb05 Mon Sep 17 00:00:00 2001 From: Tianshu Wang Date: Wed, 23 Feb 2022 16:19:01 +0800 Subject: [PATCH] [CLI] Add config `-c` argument (#12039) --- pytorch_lightning/utilities/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch_lightning/utilities/cli.py b/pytorch_lightning/utilities/cli.py index a9c06febbb..d3a9f14d77 100644 --- a/pytorch_lightning/utilities/cli.py +++ b/pytorch_lightning/utilities/cli.py @@ -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