Skip to content

Commit

Permalink
fix(@angular/cli): fixing the help command aliases (#4880)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitarora authored and hansl committed Feb 22, 2017
1 parent 8cec3ce commit ba30cc1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/@angular/cli/commands/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ const HelpCommand = Command.extend({
});

if (rawArgs.length > 0) {
if (cmd === rawArgs[0]) {
let commandInput = rawArgs[0];
const aliases = Command.prototype.aliases;
if (aliases && aliases.indexOf(commandInput) > -1) {
commandInput = Command.prototype.name;
}

if (cmd === commandInput) {
if (command.printDetailedHelp(commandOptions)) {
this.ui.writeLine(command.printDetailedHelp(commandOptions));
} else {
Expand Down

0 comments on commit ba30cc1

Please sign in to comment.