symfony/symfony — pull request #9566 by chEbba (2013-11-22 00:35:47+00:00)
Title: [Console] Revert BC-break for verbose option value

**This PR is not ready to be merged**.

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

- [ ] Fix failed test for ArgvInput verbose long option value

Closes #9285

----

PR #8835 "fixed" the input value for verbosity option with `VALUE_OPTIONAL`. And syntax like
```
cli.php -v command
cli.php --verbose command
```
Is broken now, because `ArgvInput` tries to use argument as verbose value (#9285).
For now i added a test for this case and revert this changes.

Also I added a test for long option value. Which does not work for `ArgvInput`, because it checks that value should not be passed for `VALUE_NONE` options. So syntax
```
cli.php --verbose=3 command
cli.php command --verbose=3
```
is **not working since 2.3**.

**Summary**: with `VALUE_NONE` you can not use long option for verbose, with `VALUE_OPTIONAL` we have a BC-break. I can't find a good workaround for it. I guess the best solution is to **completely remove the long option value feature**.