summaryrefslogtreecommitdiff
path: root/gitlab/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/cli.py')
-rwxr-xr-xgitlab/cli.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py
index fcbecd8..9104331 100755
--- a/gitlab/cli.py
+++ b/gitlab/cli.py
@@ -277,12 +277,16 @@ def main():
sys.exit(1)
gitlab_id = arg.gitlab
- # conflicts with "gitlab" attribute from GitlabObject class
- args.pop("gitlab")
verbose = arg.verbose
action = arg.action
what = arg.what
+ # Remove CLI behavior-related args
+ args.pop("gitlab")
+ args.pop("config_file")
+ args.pop("verbose")
+ args.pop("what")
+
if gitlab_id is None:
try:
gitlab_id = config.get('global', 'default')