summaryrefslogtreecommitdiff
path: root/gitlab/cli.py
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-06-05 18:00:28 +0200
committerGitHub <noreply@github.com>2022-06-05 18:00:28 +0200
commit61b8beb8bed0a9d7cd30450fefba0dd76c0d35d6 (patch)
treeaa8e9672de5efd7c84e54ccb1ba4f123e45ce1d6 /gitlab/cli.py
parent6cdccd90177a70835db176155cf6d0dde70989d3 (diff)
parentfb3f28a053f0dcf0a110bb8b6fd11696b4ba3dd9 (diff)
downloadgitlab-61b8beb8bed0a9d7cd30450fefba0dd76c0d35d6.tar.gz
Merge pull request #2054 from python-gitlab/jlvillal/resource
chore: rename `whaction` and `action` to `resource_action` in CLI
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r--gitlab/cli.py8
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
+ )