diff options
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r-- | gitlab/cli.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py index 5cf8e2d..2495f0a 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -366,14 +366,13 @@ def main() -> None: try: gl = gitlab.Gitlab.merge_config(vars(options), gitlab_id, config_files) + if debug: + gl.enable_debug() if gl.private_token or gl.oauth_token: gl.auth() except Exception as e: die(str(e)) - if debug: - gl.enable_debug() - gitlab.v4.cli.run( gl, gitlab_resource, resource_action, args_dict, verbose, output, fields ) |