Skip to content

Commit b6d8511

Browse files
filipesilvahansl
authored andcommitted
fix(@angular/cli): show help on just ng command (#4780)
Fix #4776
1 parent 53994ce commit b6d8511

File tree

1 file changed

+4
-0
lines changed
  • packages/@angular/cli/ember-cli/lib/cli

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ CLI.prototype.run = function(environment) {
2525
return Promise.hash(environment).then(function(environment) {
2626
var args = environment.cliArgs.slice();
2727

28+
if (args.length === 0) {
29+
args[0] = 'help';
30+
}
31+
2832
if (args[0] === '--help') {
2933
if (args.length === 1) {
3034
args[0] = 'help';

0 commit comments

Comments
 (0)