Skip to content

Commit

Permalink
first updates to bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: Pujal <pujal.gandhi@broadcom.com>
  • Loading branch information
pujal0909 committed Feb 25, 2025
1 parent b91b989 commit c24b557
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/imperative/src/cmd/src/help/DefaultHelpGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,14 +499,16 @@ export class DefaultHelpGenerator extends AbstractHelpGenerator {
const exampleHyphen = this.mProduceMarkdown ? "" : "-";
const options = example.options.length > 0 ? ` ${example.options}` : "";
const description = this.mProduceMarkdown ? this.escapeMarkdown(example.description) : example.description;
let exampleText = "{{bullet}}" + exampleHyphen + " {{space}}" + description + ":\n\n";
let exampleText = exampleHyphen + " " + description + ":\n\n";

if (this.skipTextWrap) {
exampleText = TextUtils.indentLines(exampleText, this.mProduceMarkdown ? "" : DefaultHelpGenerator.HELP_INDENT);
} else {
exampleText = TextUtils.wordWrap(exampleText,
undefined,
this.mProduceMarkdown ? "" : DefaultHelpGenerator.HELP_INDENT);
}
console.log(exampleText);
exampleText += " {{bullet}}{{space}}{{codeBegin}}$ {{space}}" +
prefix +
this.mRootCommandName + " " +
Expand Down

0 comments on commit c24b557

Please sign in to comment.