Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Add command alias on Help
Browse files Browse the repository at this point in the history
  • Loading branch information
zenorocha committed Jun 4, 2013
1 parent 73b9e05 commit 32ae664
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/cmds/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ Help.prototype.run = function() {
var cmd = require(path.join(cmdDir, cmdList[i]));

cmdOutput[i] = {
name: path.basename(cmdList[i], '.js'),
alias: cmd.Impl.DETAILS.alias,
description: cmd.Impl.DETAILS.description,
flags: instance.groupOptions_(cmd.Impl.DETAILS)
flags: instance.groupOptions_(cmd.Impl.DETAILS),
name: path.basename(cmdList[i], '.js')
};
}

Expand Down
2 changes: 1 addition & 1 deletion lib/cmds/templates/help.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{prefix}} List of available commands:
{{prefix}}
{{#each commands}}
{{../prefix}} {{{magentaBright "" name}}} {{{description}}}
{{../prefix}} {{{magentaBright ""}}}{{#if alias}}{{{magentaBright alias ", "}}}{{/if}}{{{magentaBright name}}} {{{description}}}
{{#each flags}}
{{../../prefix}} {{#if shorthand}}{{{greenBright "-" shorthand ", "}}{{/if}}{{{greenBright "--" option}} {{#if type}}({{type}}){{/if}}
{{/each}}
Expand Down

0 comments on commit 32ae664

Please sign in to comment.