-
Notifications
You must be signed in to change notification settings - Fork 475
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
Issue with space char into argument command #638
Comments
Try |
That is what I do, I've write a mistake in my comment. This is working with php and not with sail. |
Wondering if it's the |
Don't working: <?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class ma extends Command
{
protected $signature = 'ma {arg}';
public function handle()
{
dd($this->arguments());
}
} sail artisan ma "foo bar" Too many arguments to "ma" command, expected arguments "arg". sail artisan ma "foobar" |
I'm sorry but I don't know what the issue is then. Appreciating any insights if anyone could give them. |
Thank you for reporting this issue! As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub. If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team. Thank you! |
I've found the issue, sorry for disagreement. That was my alias, I wrote vendor/bin/sail $* instead of vendor/bin/sail "$@" Ty |
Sail Version
1.26.1
Laravel Version
10.33.1
PHP Version
8.2.12
Operating System
Windows (WSL)
OS Version
22
Description
When you call an artisan command with argument or option with a space char, only first word is transmited
Steps To Reproduce
sail artisan ma_commande "Mon argument avec espace"
result
The text was updated successfully, but these errors were encountered: