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

Passthrough args via --? #59

Open
1 task done
lkraav opened this issue Oct 25, 2019 · 2 comments
Open
1 task done

Passthrough args via --? #59

lkraav opened this issue Oct 25, 2019 · 2 comments

Comments

@lkraav
Copy link

lkraav commented Oct 25, 2019

Feature Request

Describe your use case and the problem you are facing

I want to load Xdebug module into the web server via php -S -dzend_extension=xdebug.so.

Describe the solution you'd like

wp server could pass through additional arguments to php after -- argument.

Example: wp server --docroot=public -- -dzend_extension=xdebug.so

Doing this via wp server --config argument is problematic, because I want to define universally usable commands centrally in composer.json scripts. Due to variety of INI configuration file locations on user's system, which we actually don't want to replace, this doesn't seem to be achievable with a single --config argument.

@schlessera
Copy link
Member

Sounds like a reasonable use case.

@lkraav
Copy link
Author

lkraav commented Nov 13, 2019

In the meanwhile, I discovered it's possible to successfully set up both regular and Xdebug configurations in PhpStorm, by inspecting wp server command line in the process list, and using that to configure wp-cli embedded router in PhpStorm PHP interpreter panel.

But still, that passthrough argument would be nice to have for cross-IDE, -platform etc purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants