symfony/symfony — pull request #9576 by chEbba (2013-11-22 15:34:44+00:00)
Title: [Console] Verbose long option value does not work in ArgvInput

This PR just add a test and opens the issue, which relates #9566 to start a discussion about the problem.

I added a test for long option value. Which does not work for `ArgvInput`. So syntax
```
cli.php --verbose=3 command
cli.php command --verbose=3
```
is **not working since 2.3**.

What can be done:
- Remove all hacks like hasParameterOption('--verbose=3')
- Remove tests for long option value
- Add checks in ArrayInput for options without value

But there a low chance of user problems still exists if they rely on this option in ArrayInput (long verbose option value works for `ArrayInput` with `VALUE_NONE` because it does not check that value is acceptable, and does not work for `String` or `Argv` because of this check).

The another way is to add some more hacks to fix this support. But any change in this way have to be a hack, because option should stay to be `VALUE_NONE` for BC.

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