Skip to content

Commit 121c390

Browse files
sumitarorahansl
authored andcommitted
fix(@angular/cli): fixing the help command (#4726)
1 parent 78313b3 commit 121c390

File tree

1 file changed

+5
-1
lines changed
  • packages/@angular/cli/commands

1 file changed

+5
-1
lines changed

packages/@angular/cli/commands/help.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ const HelpCommand = Command.extend({
5656

5757
if (rawArgs.length > 0) {
5858
if (cmd === rawArgs[0]) {
59-
this.ui.writeLine(command.printDetailedHelp(commandOptions));
59+
if (command.printDetailedHelp(commandOptions)) {
60+
this.ui.writeLine(command.printDetailedHelp(commandOptions));
61+
} else {
62+
this.ui.writeLine(command.printBasicHelp(commandOptions));
63+
}
6064
}
6165
} else {
6266
this.ui.writeLine(command.printBasicHelp(commandOptions));

0 commit comments

Comments
 (0)