We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1792442 commit a8caddcCopy full SHA for a8caddc
gitlab/cli.py
@@ -136,9 +136,6 @@ def main():
136
exit(0)
137
138
parser = _get_base_parser(add_help=False)
139
- if "--help" in sys.argv or "-h" in sys.argv:
140
- parser.print_help()
141
- exit(0)
142
143
# This first parsing step is used to find the gitlab config to use, and
144
# load the propermodule (v3 or v4) accordingly. At that point we don't have
@@ -150,6 +147,9 @@ def main():
150
147
options.config_file
151
148
)
152
149
except gitlab.config.ConfigError as e:
+ if "--help" in sys.argv or "-h" in sys.argv:
+ parser.print_help()
+ exit(0)
153
sys.exit(e)
154
cli_module = importlib.import_module('gitlab.v%s.cli' % config.api_version)
155
0 commit comments