Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony console: how to define option as string containing spaces

Is there any way to define option as string containing spaces, like this

$myscript.php test --comment="some string"

It outputs:

[RuntimeException]   
Too many arguments.

test [-c|--comment="..."]

However, it works if --comment doesn't contain spaces (for example: "some_string").

like image 269
solo117 Avatar asked Sep 01 '13 16:09

solo117


1 Answers

I ran into the same problem. Maybe your myscript.php is passing the arguments the wrong way. Check this issue on github: https://github.com/symfony/symfony/issues/11205

like image 68
Lordn__n Avatar answered Oct 13 '22 15:10

Lordn__n