diff options
author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-05-14 21:04:03 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2015-05-14 21:04:03 +0200 |
commit | d254e641c58d8784526882ae48662dfedeb6eb88 (patch) | |
tree | 6be4b2c032984d7a56176ab29229e8aaeb9d46b6 /gitlab/cli.py | |
parent | 711c5be6f8210a40de056ba5359d61f877d925c8 (diff) | |
download | gitlab-d254e641c58d8784526882ae48662dfedeb6eb88.tar.gz |
CLI: remove wrong attributes from the verbose output
These attributes comme from the command line arguments.
Diffstat (limited to 'gitlab/cli.py')
-rwxr-xr-x | gitlab/cli.py | 8 |
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') |