File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,16 @@ export class Command extends Ditamap {
30
30
const parameters = this . getParametersForTemplate ( flags as Dictionary < CommandHelpInfo > ) ;
31
31
32
32
// The template only expects a oneline description. Punctuate the first line of either the lingDescription or description.
33
- const description = punctuate ( asString ( command . longDescription ) || asString ( command . description ) ) ;
33
+ const fullDescription = asString ( command . longDescription ) || asString ( command . description ) ;
34
+ const description = punctuate ( fullDescription ) ;
34
35
// Help are all the lines after the first line in the description. Before oclif, there was a 'help' property so continue to
35
36
// support that.
36
37
37
38
if ( ! description ) {
38
39
events . emit ( 'warning' , `Missing description for ${ command . id } \n` ) ;
39
40
}
40
41
41
- const help = this . formatParagraphs ( asString ( command . help ) || helpFromDescription ( description ) ) ;
42
+ const help = this . formatParagraphs ( asString ( command . help ) || helpFromDescription ( fullDescription ) ) ;
42
43
let trailblazerCommunityUrl ;
43
44
let trailblazerCommunityName ;
44
45
You can’t perform that action at this time.
0 commit comments