@@ -27,7 +27,7 @@ const table = (items: string[][]) =>
2727
2828const splitTable = ( items : string [ ] [ ] ) => table ( items ) . split ( "\n" ) ;
2929
30- const DELIMITER = yc . yellow ( "-" ) ;
30+ const DELIMITER = "-" ;
3131const INDENT = " " . repeat ( 2 ) ;
3232
3333const withIndent = ( str : string ) : string => `${ INDENT } ${ str } ` ;
@@ -110,7 +110,7 @@ export class HelpRenderer {
110110 return body ;
111111 }
112112
113- return `${ yc . bold ( section . title ) } \n${ body
113+ return `${ yc . underline ( yc . bold ( section . title ) ) } \n${ body
114114 . split ( "\n" )
115115 . map ( withIndent )
116116 . join ( "\n" ) } `;
@@ -138,16 +138,16 @@ export class HelpRenderer {
138138 const command = this . _command ;
139139 const description = command ? command . description : _description ;
140140 const formattedCommandName = command ?. name
141- ? ` ${ yc . cyan ( command . name ) } `
141+ ? ` ${ yc . bold ( command . name ) } `
142142 : "" ;
143143 const headerLine = command
144- ? `${ yc . green ( _name ) } ${ formattedCommandName } `
145- : `${ yc . green ( _name ) } ${ yc . yellow ( formatVersion ( _version ) ) } ` ;
144+ ? `${ _name } ${ formattedCommandName } `
145+ : `${ yc . bold ( _name ) } ${ formatVersion ( _version ) } ` ;
146146 const alias = command ?. alias
147147 ? `Alias${ toArray ( command . alias ) . length > 1 ? "es" : "" } : ${ toArray (
148148 command . alias ,
149149 )
150- . map ( ( a ) => yc . cyan ( a ) )
150+ . map ( ( a ) => yc . bold ( a ) )
151151 . join ( ", " ) } `
152152 : undefined ;
153153
@@ -190,7 +190,7 @@ export class HelpRenderer {
190190
191191 return {
192192 title : "Usage" ,
193- body : [ yc . magenta ( usage ) ] ,
193+ body : [ usage ] ,
194194 } ;
195195 }
196196
@@ -207,8 +207,8 @@ export class HelpRenderer {
207207 typeof parameter === "string" ? undefined : parameter . description ;
208208
209209 return [
210- yc . blue ( key ) ,
211- type ?. display ? yc . gray ( type . display ) : undefined ,
210+ yc . bold ( key ) ,
211+ type ? this . _formatters . formatFlagType ( type ) : "string" ,
212212 description ,
213213 ] . filter ( isTruthy ) ;
214214 } ) ;
@@ -254,7 +254,7 @@ export class HelpRenderer {
254254 const group = command . help ?. group ;
255255 validateGroup ( group , this . _commandGroups , "command" , command . name ) ;
256256
257- const commandName = yc . cyan (
257+ const commandName = yc . bold (
258258 formatCommandName ( command . name . slice ( prefix . length ) ) ,
259259 ) ;
260260 const aliases = command . alias
@@ -323,7 +323,7 @@ export class HelpRenderer {
323323
324324 const sections : Section [ ] = [
325325 {
326- body : `${ yc . green ( this . _cli . _name ) } ${ yc . cyan ( parentCommandName ) } not found` ,
326+ body : `${ this . _cli . _name } ${ yc . bold ( parentCommandName ) } not found` ,
327327 } ,
328328 {
329329 title : "Available Subcommands" ,
@@ -377,12 +377,12 @@ export class HelpRenderer {
377377 const type = this . _formatters . formatFlagType ( flag . type ) ;
378378
379379 return [
380- yc . blue ( [ flagName , aliases ] . filter ( Boolean ) . join ( ", " ) ) ,
381- yc . gray ( type ) ,
380+ yc . bold ( [ flagName , aliases ] . filter ( Boolean ) . join ( ", " ) ) ,
381+ yc . dim ( type ) ,
382382 flag . description ,
383383 flag . default !== undefined &&
384- yc . gray (
385- `[default: ${ this . _formatters . formatFlagDefault ( flag . default ) } ]` ,
384+ yc . dim (
385+ `[default: ${ yc . bold ( this . _formatters . formatFlagDefault ( flag . default ) ) } ]` ,
386386 ) ,
387387 ] . filter ( isTruthy ) ;
388388 }
0 commit comments