Skip to content

Commit b75dd61

Browse files
committed
fix: correct help
1 parent d51f193 commit b75dd61

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ditamap/command.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)