Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(help): resolve issue when using --help #3522

Merged
merged 1 commit into from
Dec 13, 2016
Merged

Conversation

Brocco
Copy link
Contributor

@Brocco Brocco commented Dec 12, 2016

Fixes #3195 and #3168

Copy link
Contributor

@hansl hansl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, e2e test for this please.

args[0] = 'help';
} else {
args.shift();
args.push('--help');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Push back the same value?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, --help is an option, not a command. So remove it from the start of the array and push it to the end.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, I was reading unshift. Cheers!

@Brocco
Copy link
Contributor Author

Brocco commented Dec 13, 2016

e2e test added

return Promise.resolve()
.then(() => silentNg('--help'))
.then(() => process.chdir('/'))
.then(() => silentNg('--help'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind trying with a command as well?

@Brocco Brocco merged commit 1352545 into angular:master Dec 13, 2016
@Brocco Brocco deleted the ng-help branch December 14, 2016 01:22
MRHarrison pushed a commit to MRHarrison/angular-cli that referenced this pull request Feb 9, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ng help command not supported while it works in ember-cli
3 participants