8000 [v4] Make sudo the first argument in CLI help · python-gitlab/python-gitlab@022a0f6 · GitHub
[go: up one dir, main page]

Skip to content < 10000 div data-target="react-partial.reactRoot">

Commit 022a0f6

Browse files
author
Gauvain Pocentek
committed
[v4] Make sudo the first argument in CLI help
1 parent b0af946 commit 022a0f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlab/v4/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ def _populate_sub_parser_by_class(cls, sub_parser):
114114
continue
115115

116116
sub_parser_action = sub_parser.add_parser(action_name)
117+
sub_parser_action.add_argument("--sudo", required=False)
117118
if hasattr(mgr_cls, '_from_parent_attrs'):
118119
[sub_parser_action.add_argument("--%s" % x.replace('_', '-'),
119120
required=True)
120121
for x in mgr_cls._from_parent_attrs]
121-
sub_parser_action.add_argument("--sudo", required=False)
122122

123123
if action_name == "list":
124124
if hasattr(mgr_cls, '_list_filters'):

0 commit comments

Comments
 (0)
0