Skip to content

Commit

Permalink
CLI: remove wrong attributes from the verbose output
Browse files Browse the repository at this point in the history
These attributes comme from the command line arguments.
  • Loading branch information
Gauvain Pocentek committed May 14, 2015
1 parent 711c5be commit d254e64
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gitlab/cli.py
Expand Up @@ -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')
Expand Down

0 comments on commit d254e64

Please sign in to comment.