Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a440bbc

Browse files
bearomorphismLee-W
authored andcommitted
style(cli): rename kwarg to values
1 parent f9d0834 commit a440bbc

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)

AltStyle によって変換されたページ (->オリジナル) /