Skip to content

Commit 6788e1b

Browse files
committed
Changes in cli.py reverted, --reverted requires argument as like as other boolean params
1 parent 6f94ced commit 6788e1b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

gitlab/v4/cli.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,7 @@ def _populate_sub_parser_by_class(cls, sub_parser):
230230
for x in required if x != cls._id_attr]
231231
[sub_parser_action.add_argument("--%s" % x.replace('_', '-'),
232232
required=False)
233-
for x in optional if x != cls._id_attr and x not in ['recursive']]
234-
[sub_parser_action.add_argument("--%s" % x, action='store_true',
235-
required=False)
236-
for x in optional if x in ['recursive']]
233+
for x in optional if x != cls._id_attr]
237234

238235
if mgr_cls.__name__ in cli.custom_actions:
239236
name = mgr_cls.__name__

0 commit comments

Comments
 (0)