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

Fixes #8046 regression which prevented other command line arguments from being used #8455

Merged
merged 4 commits into from
Apr 5, 2023

Conversation

borisno2
Copy link
Member

@borisno2 borisno2 commented Apr 5, 2023

Our recent changes in #8046 added some extra CLI flags, including a new feature that would throw (exit the process early) if any unsupported flags were passed to the CLI.

Unfortunately this broken expected behaviour for anyone using process.argv for other purposes in their code.

For example, if a user was using something like --seed-data as a flag for their onConnect function.
No one has reported this bug to date, which is good insofar as the blast radius of that breaking change, but, we'll nonetheless revert the change for now to the previous behaviour.

@changeset-bot

This comment was marked as resolved.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 5, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 72aaaba:

Sandbox Source
@keystone-6/sandbox Configuration

@dcousens dcousens changed the title Re-allow extra flags to be passed in the CLI Fixes #8046 regression which prevented other command line arguments from being used Apr 5, 2023
@dcousens dcousens merged commit 7cc1a9f into main Apr 5, 2023
@dcousens dcousens deleted the fix-extra-cli-flags branch April 5, 2023 04:17
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.

2 participants