Skip to content

Commit

Permalink
fix(help): don't show aliases on help output
Browse files Browse the repository at this point in the history
no issue
- this helps keep the output clean, most of the aliases are either abbreviations or recognized typo commands
  • Loading branch information
acburdine committed Mar 19, 2018
1 parent c93124b commit 2f67058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ const bootstrap = {
debug('running help command, requiring and configuring every command');

each(commands, (commandPath, commandName) => {
const aliases = Object.keys(abbreviations).filter((key) => abbreviations[key] === commandName);
bootstrap.loadCommand(commandName, commandPath, yargs, aliases, extensions);
// Don't fetch aliases for help commands to keep the output clean.
bootstrap.loadCommand(commandName, commandPath, yargs, [], extensions);
});
argv.unshift('help');
} else if (abbreviations[firstArg]) {
Expand Down

0 comments on commit 2f67058

Please sign in to comment.