fix(cli): match command tree description separator

This commit is contained in:
Andrey Avtomonov 2026-05-13 00:27:39 +02:00
parent d4ce275a3c
commit e8a7018c55
3 changed files with 5 additions and 5 deletions

View file

@ -25,7 +25,7 @@ export function formatCommandTree(node: CommandTreeNode): string {
function appendNode(node: CommandTreeNode, depth: number, lines: string[]): void {
const indent = ' '.repeat(depth);
const aliasPart = node.aliases.length > 0 ? ` (${node.aliases.join(', ')})` : '';
const descriptionPart = node.description.length > 0 ? ` - ${node.description}` : '';
const descriptionPart = node.description.length > 0 ? ` ${node.description}` : '';
lines.push(`${indent}${node.name}${aliasPart}${descriptionPart}`);
const sortedChildren = [...node.children].sort((a, b) => a.name.localeCompare(b.name));