Skip to content

Commit

Permalink
fix(@angular/cli): show help on just ng command (#4780)
Browse files Browse the repository at this point in the history
Fix #4776
  • Loading branch information
filipesilva authored and hansl committed Feb 17, 2017
1 parent 53994ce commit b6d8511
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/@angular/cli/ember-cli/lib/cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ CLI.prototype.run = function(environment) {
return Promise.hash(environment).then(function(environment) {
var args = environment.cliArgs.slice();

if (args.length === 0) {
args[0] = 'help';
}

if (args[0] === '--help') {
if (args.length === 1) {
args[0] = 'help';
Expand Down

0 comments on commit b6d8511

Please sign in to comment.