symfony/symfony — pull request #10603 by mickaelandrieu (2014-04-01 09:16:42+00:00)
Title: [WIP]REFS #10487 - [Console] Fixed Options arguments behaviour

| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | yes
| Deprecations? | no
| Tests pass? | no
| Fixed tickets | #10487, #9576
| License | MIT
| Doc PR | no

Hi,

I'm actualy working on it.
The main problem is that we can actualy do:
``` php app/console --foo bar``` and foo value is bar.

This behavior is not correct with the actual documentation: http://symfony.com/doc/2.3/components/console/introduction.html#using-command-arguments

The options values should be passed with the ```=``` operator and don't accept "space" notation described before.

That's why a call like ```php app/console -v foo bar``` crashes becauses the actual behavior try to use the next arguments as a value for the current option.

So... do we have to fix the behavior on ```verbose``` or remove the "space" notation ?

Regards,