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

fix: don't ignore login data set via CLI params (regression from #316) #325

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

Sirs0ri
Copy link
Contributor

@Sirs0ri Sirs0ri commented Apr 14, 2022

In attempting to fix an empty options object overshadowing the options set by the user via CLI, #316 mistakenly adjusted options.username, options.password and options.bearer to be attributes of the newly introduced parserOptions. They should, however, still refer to the options object that holds all the information previously set via CLI arguments.

I also added two comments to make the difference between the two sets of options more clear.

Q A
Branch? current stable version branch for bug fixes
Tickets n.a.
License MIT
Doc PR n.a.

@alanpoulain alanpoulain changed the title Fix: don't ignore login data set via CLI params (regression from #316) fix: don't ignore login data set via CLI params (regression from #316) Apr 14, 2022
@alanpoulain
Copy link
Member

LGTM, you need to fix the CS too.

…platform#316)

In attempting to fix an empty `options` object overshadowing the options set by the user via CLI, api-platform#316 mistakenly adjusted `options.username`, `options.password` and `options.bearer` to be attributes of the newly introduced `parserOptions`. They should, however, still refer to the `options` object that holds all the information previously set via CLI arguments.
I also added two comments to make the difference between the two sets of options more clear.
@Sirs0ri
Copy link
Contributor Author

Sirs0ri commented Apr 14, 2022

@alanpoulain What do you mean by "CS"?

I just addressed the one linter error I missed (in a squashed commit, therefore the force push).

@alanpoulain alanpoulain merged commit 4785a18 into api-platform:main Apr 14, 2022
@alanpoulain
Copy link
Member

CS: Code Style (the linter error).
Thank you!

@Sirs0ri
Copy link
Contributor Author

Sirs0ri commented Apr 14, 2022

oh, gotcha. You're welcome!

@Sirs0ri Sirs0ri deleted the patch-1 branch April 14, 2022 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants