Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite48e149

Browse files
author
Gauvain Pocentek
committed
CLI: fix the discovery of possible actions
1 parente8631c1 commite48e149

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎gitlab/cli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ def clsToWhat(cls):
6666
defpopulate_sub_parser_by_class(cls,sub_parser):
6767
foraction_nameinACTIONS:
6868
attr='can'+action_name.capitalize()
69-
y=getattr(cls,attr)orgetattr(gitlab.GitlabObject,attr)
70-
ifnoty:
69+
ifnotgetattr(cls,attr):
7170
continue
7271
sub_parser_action=sub_parser.add_parser(action_name)
7372
[sub_parser_action.add_argument("--%s"%x.replace('_','-'),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp