Skip to content

Commit

Permalink
fix(help): missing "Examples :" text before examples
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan authored Aug 6, 2024
1 parent 4dd30f2 commit 1105e2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/common/help/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ async function showHelp(command: Command, session: Session<'authority'>, config:
output.push(session.text('.command-examples'), ...command._examples.map(example => ' ' + example))
} else {
const text = session.text([`commands.${command.name}.examples`, ''], command.config.params)
if (text) output.push(...text.split('\n').map(line => ' ' + line))
if (text) output.push(session.text('.command-examples'), ...text.split('\n').map(line => ' ' + line))
}

output.push(...await formatCommands('.subcommand-prolog', session, command.children, config))
Expand Down

0 comments on commit 1105e2f

Please sign in to comment.