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 {
3030 const parameters = this . getParametersForTemplate ( flags as Dictionary < CommandHelpInfo > ) ;
3131
3232 // 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 ) ;
3435 // Help are all the lines after the first line in the description. Before oclif, there was a 'help' property so continue to
3536 // support that.
3637
3738 if ( ! description ) {
3839 events . emit ( 'warning' , `Missing description for ${ command . id } \n` ) ;
3940 }
4041
41- const help = this . formatParagraphs ( asString ( command . help ) || helpFromDescription ( description ) ) ;
42+ const help = this . formatParagraphs ( asString ( command . help ) || helpFromDescription ( fullDescription ) ) ;
4243 let trailblazerCommunityUrl ;
4344 let trailblazerCommunityName ;
4445
You can’t perform that action at this time.
0 commit comments