zfcampus/zf-console — pull request #5 by weierophinney (2014-07-15 18:45:26+00:00)
Title: Simplify mapping the command name to the route

The command name could be prepended to the route provided:

```php
array(
'name' => 'fetch-all',
'route' => '[--output=]',
)
```

would evaluate to:

```php
'fetch-all [--output=]'
```

This could even be such that you could opt-out if you wanted:

```php
array(
'name' => 'version',
'route' => '[--version|-v]'
'prepend_command_to_route' => false,
),
```

Finally, if the route already starts with the command name, no changes would be made:

```php
array(
'name' => 'fetch-all',
'route' => 'fetch-all [--output=]',
),
```

The last ensures BC, the middle allows opting-out of the 1:1 mapping when desired, and the first removes redundancy for the most common use case.

The intention is to codify https://github.com/zfcampus/zf-console/commit/f82408249267d37cb5629c9066066d0172d6957f#diff-c9248b3167fc44af085b81db2e292837R136