Skip to content

Commit

Permalink
refactor(parser): Rename argument to substitutions
Browse files Browse the repository at this point in the history
  • Loading branch information
junghoon-vans committed Dec 22, 2022
1 parent 16353a3 commit dd364ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions varst/utils/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down Expand Up @@ -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"[^=]+=[^=]+")
Expand Down

0 comments on commit dd364ac

Please sign in to comment.