From dd364ac29e531f94e3583a941ebada2440e1c6b8 Mon Sep 17 00:00:00 2001 From: Jeonghun-Ban Date: Thu, 22 Dec 2022 17:19:19 +0900 Subject: [PATCH] refactor(parser): Rename argument to substitutions --- varst/utils/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/varst/utils/parser.py b/varst/utils/parser.py index 8d7fdec..a37926c 100644 --- a/varst/utils/parser.py +++ b/varst/utils/parser.py @@ -20,7 +20,7 @@ def __init__(self) -> None: self.sub_pairs: Dict[str, str] = {} self._parser.add_argument( - "name=value", nargs="*", + "substitutions", nargs="*", help="name-value pairs of substitutions", type=_pattern_type, ) @@ -52,7 +52,7 @@ def parse(self, argv: Optional[Sequence[str]]) -> None: self.input_file = self.output_file = arg_dict['input'] if arg_dict['output'] is not None: self.output_file = arg_dict['output'] - self.sub_pairs = _parse_kv(arg_dict['name=value']) + self.sub_pairs = _parse_kv(arg_dict['substitutions']) _VARIABLE_PATTERN = re.compile(r"[^=]+=[^=]+")