Skip to content

Commit 0ceb317

Browse files
committed
fix(Help): fixing the help command
1 parent 16bfdf0 commit 0ceb317

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 5 additions & 1 deletion
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) {
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));

packages/@angular/cli/ember-cli/lib/models/command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ Command.prototype.printBasicHelp = function() {
430430
431431
@method printDetailedHelp
432432
*/
433-
Command.prototype.printDetailedHelp = function() {};
433+
// Command.prototype.printDetailedHelp = function() {};
434434

435435
Command.prototype.getJson = function(options) {
436436
var json = {};

0 commit comments

Comments
 (0)