File tree 1 file changed +3
-10
lines changed
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) {
50
50
51
51
let output = [
52
52
chalk . bold ( `react-native ${ cmdName } ${ this . usage ( ) } ` ) ,
53
- '' ,
54
- this . _description ? `${ this . _description } ` : '' ,
55
- '' ,
53
+ ! this . _description ? `\n${ this . _description } \n` : '' ,
56
54
...sourceInformation ,
57
55
`${ chalk . bold ( 'Options:' ) } ` ,
58
- '' ,
59
56
this . optionHelp ( ) . replace ( / ^ / gm, ' ' ) ,
60
57
] ;
61
58
@@ -64,14 +61,10 @@ function printHelpInformation(examples, pkg) {
64
61
. map ( example => ` ${ example . desc } : \n ${ chalk . cyan ( example . cmd ) } ` )
65
62
. join ( '\n\n' ) ;
66
63
67
- output = output . concat ( [
68
- chalk . bold ( '\nExample usage:' ) ,
69
- '' ,
70
- formattedUsage ,
71
- ] ) ;
64
+ output = output . concat ( [ chalk . bold ( '\nExample usage:' ) , formattedUsage ] ) ;
72
65
}
73
66
74
- return output . concat ( [ '' , '' ] ) . join ( '\n' ) ;
67
+ return output . join ( '\n' ) ;
75
68
}
76
69
77
70
function printUnknownCommand ( cmdName ) {
You can’t perform that action at this time.
0 commit comments