diff options
author | John L. Villalovos <john@sodarock.com> | 2022-06-05 08:17:15 -0700 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-06-05 08:17:15 -0700 |
commit | fb3f28a053f0dcf0a110bb8b6fd11696b4ba3dd9 (patch) | |
tree | aa8e9672de5efd7c84e54ccb1ba4f123e45ce1d6 /gitlab/cli.py | |
parent | 6cdccd90177a70835db176155cf6d0dde70989d3 (diff) | |
download | gitlab-fb3f28a053f0dcf0a110bb8b6fd11696b4ba3dd9.tar.gz |
chore: rename `whaction` and `action` to `resource_action` in CLI
Rename the variables `whaction` and `action` to `resource_action` to
improve code-readability.
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r-- | gitlab/cli.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py index c9e182d..e418714 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -323,8 +323,8 @@ def main() -> None: if args.fields: fields = [x.strip() for x in args.fields.split(",")] debug = args.debug - action = args.whaction gitlab_resource = args.gitlab_resource + resource_action = args.resource_action args_dict = vars(args) # Remove CLI behavior-related args @@ -334,7 +334,7 @@ def main() -> None: "verbose", "debug", "gitlab_resource", - "whaction", + "resource_action", "version", "output", "fields", @@ -361,4 +361,6 @@ def main() -> None: if debug: gl.enable_debug() - gitlab.v4.cli.run(gl, gitlab_resource, action, args_dict, verbose, output, fields) + gitlab.v4.cli.run( + gl, gitlab_resource, resource_action, args_dict, verbose, output, fields + ) |