Skip to content

Commit

Permalink
fix: fix tiny spacing issue with usage (#992)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Oct 21, 2017
1 parent d1cbc75 commit 7871327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/command.js
Expand Up @@ -244,7 +244,7 @@ module.exports = function command (yargs, usage, validation) {
}

function usageFromParentCommandsCommandHandler (parentCommands, commandHandler) {
const c = DEFAULT_MARKER.test(commandHandler.original) ? commandHandler.original.replace(DEFAULT_MARKER, '') : commandHandler.original
const c = DEFAULT_MARKER.test(commandHandler.original) ? commandHandler.original.replace(DEFAULT_MARKER, '').trim() : commandHandler.original
const pc = parentCommands.filter((c) => { return !DEFAULT_MARKER.test(c) })
pc.push(c)
return `$0 ${pc.join(' ')}`
Expand Down

0 comments on commit 7871327

Please sign in to comment.