We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea71f1d commit 6bb4d17Copy full SHA for 6bb4d17
gitlab/cli.py
@@ -98,7 +98,7 @@ def _get_base_parser(add_help=True):
98
"will be used."),
99
required=False)
100
parser.add_argument("-o", "--output",
101
- help=("Output format (v4 only): json|legacy|yaml"),
+ help="Output format (v4 only): json|legacy|yaml",
102
required=False,
103
choices=['json', 'legacy', 'yaml'],
104
default="legacy")
@@ -135,6 +135,10 @@ def main():
135
exit(0)
136
137
parser = _get_base_parser(add_help=False)
138
+ if "--help" in sys.argv or "-h" in sys.argv:
139
+ parser.print_help()
140
+ exit(0)
141
+
142
# This first parsing step is used to find the gitlab config to use, and
143
# load the propermodule (v3 or v4) accordingly. At that point we don't have
144
# any subparser setup
0 commit comments