File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -50,12 +50,9 @@ function printHelpInformation(examples, pkg) {
5050
5151 let output = [
5252 chalk . bold ( `react-native ${ cmdName } ${ this . usage ( ) } ` ) ,
53- '' ,
54- this . _description ? `${ this . _description } ` : '' ,
55- '' ,
53+ ! this . _description ? `\n${ this . _description } \n` : '' ,
5654 ...sourceInformation ,
5755 `${ chalk . bold ( 'Options:' ) } ` ,
58- '' ,
5956 this . optionHelp ( ) . replace ( / ^ / gm, ' ' ) ,
6057 ] ;
6158
@@ -64,14 +61,10 @@ function printHelpInformation(examples, pkg) {
6461 . map ( example => ` ${ example . desc } : \n ${ chalk . cyan ( example . cmd ) } ` )
6562 . join ( '\n\n' ) ;
6663
67- output = output . concat ( [
68- chalk . bold ( '\nExample usage:' ) ,
69- '' ,
70- formattedUsage ,
71- ] ) ;
64+ output = output . concat ( [ chalk . bold ( '\nExample usage:' ) , formattedUsage ] ) ;
7265 }
7366
74- return output . concat ( [ '' , '' ] ) . join ( '\n' ) ;
67+ return output . join ( '\n' ) ;
7568}
7669
7770function printUnknownCommand ( cmdName ) {
You can’t perform that action at this time.
0 commit comments