Skip to content

Commit 9df69b2

Browse files
committed
bug(help): resolve issue when using --help
Fixes #3195 and #3168
1 parent 3d6122a commit 9df69b2

File tree

1 file changed

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

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,16 @@ module.exports = CLI;
2525
CLI.prototype.run = function(environment) {
2626
return Promise.hash(environment).then(function(environment) {
2727
var args = environment.cliArgs.slice();
28+
29+
if (args[0] === '--help') {
30+
if (args.length === 1) {
31+
args[0] = 'help';
32+
} else {
33+
args.shift();
34+
args.push('--help');
35+
}
36+
}
37+
2838
var commandName = args.shift();
2939
var commandArgs = args;
3040
var helpOptions;

0 commit comments

Comments
 (0)