Skip to content

Commit ac9e742

Browse files
committed
style(cli): rename kwarg to values
1 parent 24c8201 commit ac9e742

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

commitizen/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ def __call__(
4747
self,
4848
parser: argparse.ArgumentParser,
4949
namespace: argparse.Namespace,
50-
kwarg: object,
50+
values: object,
5151
option_string: str | None = None,
5252
) -> None:
53-
if not isinstance(kwarg, str):
53+
if not isinstance(values, str):
5454
return
55-
if "=" not in kwarg:
55+
if "=" not in values:
5656
raise InvalidCommandArgumentError(
5757
f"Option {option_string} expect a key=value format"
5858
)
5959
kwargs = getattr(namespace, self.dest, None) or {}
60-
key, value = kwarg.split("=", 1)
60+
key, value = values.split("=", 1)
6161
if not key:
6262
raise InvalidCommandArgumentError(
6363
f"Option {option_string} expect a key=value format"

0 commit comments

Comments
 (0)