Skip to content

Commit d254e64

Browse files
author
Gauvain Pocentek
committed
CLI: remove wrong attributes from the verbose output
These attributes comme from the command line arguments.
1 parent 711c5be commit d254e64

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

gitlab/cli.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,16 @@ def main():
277277
sys.exit(1)
278278

279279
gitlab_id = arg.gitlab
280-
# conflicts with "gitlab" attribute from GitlabObject class
281-
args.pop("gitlab")
282280
verbose = arg.verbose
283281
action = arg.action
284282
what = arg.what
285283

284+
# Remove CLI behavior-related args
285+
args.pop("gitlab")
286+
args.pop("config_file")
287+
args.pop("verbose")
288+
args.pop("what")
289+
286290
if gitlab_id is None:
287291
try:
288292
gitlab_id = config.get('global', 'default')

0 commit comments

Comments
 (0)