Skip to content

Commit

Permalink
fix(@angular/cli): fixing the help command (#4726)
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitarora authored and hansl committed Feb 17, 2017
1 parent 78313b3 commit 121c390
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/@angular/cli/commands/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ const HelpCommand = Command.extend({

if (rawArgs.length > 0) {
if (cmd === rawArgs[0]) {
this.ui.writeLine(command.printDetailedHelp(commandOptions));
if (command.printDetailedHelp(commandOptions)) {
this.ui.writeLine(command.printDetailedHelp(commandOptions));
} else {
this.ui.writeLine(command.printBasicHelp(commandOptions));
}
}
} else {
this.ui.writeLine(command.printBasicHelp(commandOptions));
Expand Down

0 comments on commit 121c390

Please sign in to comment.