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

Support custom extension parameters on command line #5902

Open
Bilge opened this issue Jul 21, 2024 · 2 comments
Open

Support custom extension parameters on command line #5902

Bilge opened this issue Jul 21, 2024 · 2 comments
Labels
type/enhancement A new idea that should be implemented

Comments

@Bilge
Copy link
Contributor

Bilge commented Jul 21, 2024

At the moment we can only specify custom parameters in the XML config. I propose we also allow specifying the same on the command line. Of course, the naive solution presents a problem where extensions may register names that conflict with (future) PHPUnit parameters, but I propose all such extension parameters be double-prefixed: first with a global extension prefix (x) and then with a custom prefix they register themselves.

For example, my printer, Pip, may register the pip prefix and then it can be passed command-line arguments in the form:

--x-pip-my-param='my value'

The extension registering the pip prefix will receive all command-line arguments so prefixed with --x-pip- automatically.

@Bilge Bilge added the type/enhancement A new idea that should be implemented label Jul 21, 2024
@flow6979
Copy link

Hello @Bilge i would like to work on this issue, can you please assign it to me?

@Bilge
Copy link
Contributor Author

Bilge commented Aug 25, 2024

Not my call.
cc @sebastianbergmann

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement A new idea that should be implemented
Projects
None yet
Development

No branches or pull requests

2 participants