Skip to content

Commit

Permalink
fix: tweak help message
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Nov 26, 2018
1 parent 09bbb54 commit 50395ec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,12 @@ export default class Command {
sections.push({
title: `For more info, run any command with the \`--help\` flag`,
body: config.subCommands
.map(command => ` $ ${config.bin} ${command.name} --help`)
.map(
command =>
` $ ${config.bin}${
command.name === '' ? '' : ` ${command.name}`
} --help`
)
.join('\n')
})
}
Expand Down

0 comments on commit 50395ec

Please sign in to comment.