Allow pint wrapper scripts to accept and pass through command-line arguments #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The
pint
andpint-test
wrapper scripts were hardcoded to only pass specific arguments (--config
and--test
) to the underlying Laravel Pint executable, ignoring any additional command-line arguments provided by users.This meant users couldn't leverage Laravel Pint's full functionality through the wrapper scripts. For example, these commands would ignore the additional arguments:
Solution
Modified both wrapper scripts to accept and seamlessly pass through all command-line arguments using bash's
"$@"
parameter expansion:Before:
After:
Usage Examples
Users can now pass any Laravel Pint arguments through the wrapper scripts:
The wrapper scripts maintain their core functionality (automatic config file detection and validation) while now supporting the full range of Laravel Pint's command-line options.
Documentation
Updated the README.md with examples showing how to use additional arguments with both wrapper scripts, making the new functionality discoverable for users.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/laravel/pint/zipball/0345f3b05f136801af8c339f9d16ef29e6b4df8a
/usr/bin/php8.3 -n -c /tmp/VBjgBz /usr/bin/composer install
(http block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.