Skip to content

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.

3 participants