File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ root = true
6
6
indent_style = space
7
7
indent_size = 4
8
8
insert_final_newline = true
9
- trim_trailing_whitespace = true
9
+ trim_trailing_whitespace = false
10
10
end_of_line = lf
11
11
charset = utf-8
12
12
13
13
[* .py ]
14
- max_line_length = 100
14
+ max_line_length = 100
Original file line number Diff line number Diff line change @@ -92,17 +92,17 @@ def _add_argument(parser, arg_settings):
92
92
def _get_group_help (command ):
93
93
descriptions = _build_group_command_descriptions (command )
94
94
output = []
95
- if not command .name :
95
+ name = command .name
96
+ if not name :
96
97
name = u"code42"
97
98
output .append (BANNER )
98
99
99
- output .extend ([u" \n Available commands in <{}>:" .format (command . name ), descriptions ])
100
+ output .extend ([u" \n Available commands in <{}>:" .format (name ), descriptions ])
100
101
return "\n " .join (output )
101
102
102
103
103
104
def _build_group_command_descriptions (command ):
104
105
subs = command .subcommands
105
- name = command .name
106
106
name_width = len (max ([cmd .name for cmd in subs ], key = len ))
107
107
lines = [u" {} - {}" .format (cmd .name .ljust (name_width ), cmd .description ) for cmd in subs ]
108
108
return u"\n " .join (lines )
You can’t perform that action at this time.
0 commit comments