We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8631c1 commit e48e149Copy full SHA for e48e149
gitlab/cli.py
@@ -66,8 +66,7 @@ def clsToWhat(cls):
66
def populate_sub_parser_by_class(cls, sub_parser):
67
for action_name in ACTIONS:
68
attr = 'can' + action_name.capitalize()
69
- y = getattr(cls, attr) or getattr(gitlab.GitlabObject, attr)
70
- if not y:
+ if not getattr(cls, attr):
71
continue
72
sub_parser_action = sub_parser.add_parser(action_name)
73
[sub_parser_action.add_argument("--%s" % x.replace('_', '-'),
0 commit comments