Skip to content

Commit 50395ec

Browse files
committed
fix: tweak help message
1 parent 09bbb54 commit 50395ec

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Command.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,12 @@ export default class Command {
154154
sections.push({
155155
title: `For more info, run any command with the \`--help\` flag`,
156156
body: config.subCommands
157-
.map(command => ` $ ${config.bin} ${command.name} --help`)
157+
.map(
158+
command =>
159+
` $ ${config.bin}${
160+
command.name === '' ? '' : ` ${command.name}`
161+
} --help`
162+
)
158163
.join('\n')
159164
})
160165
}

0 commit comments

Comments
 (0)