File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ export class CommandHelp extends HelpFormatter {
161
161
}
162
162
}
163
163
164
- label = labels . join ( colorize ( this . config ?. theme ?. flagSeparator , flag . char ? ', ' : ' ' ) )
164
+ label = labels . join ( flag . char ? colorize ( this . config ?. theme ?. flagSeparator , ', ' ) : ' ' )
165
165
}
166
166
167
167
if ( flag . type === 'option' ) {
@@ -175,7 +175,7 @@ export class CommandHelp extends HelpFormatter {
175
175
label += `=${ value } `
176
176
}
177
177
178
- return label
178
+ return colorize ( this . config . theme ?. flag , label )
179
179
}
180
180
181
181
protected flags ( flags : Array < Command . Flag . Any > ) : [ string , string | undefined ] [ ] | undefined {
@@ -184,7 +184,7 @@ export class CommandHelp extends HelpFormatter {
184
184
const noChar = flags . reduce ( ( previous , current ) => previous && current . char === undefined , true )
185
185
186
186
return flags . map ( ( flag ) => {
187
- let left = colorize ( this . config ?. theme ?. flag , this . flagHelpLabel ( flag ) )
187
+ let left = this . flagHelpLabel ( flag )
188
188
189
189
if ( noChar ) left = left . replace ( ' ' , '' )
190
190
You can’t perform that action at this time.
0 commit comments