This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/tests/Symfony/Tests/Component/Console/Input
Fabien Potencier 4ad7e0e4dd merged branch Seldaek/console_opts2 (PR #3061)
Commits
-------

c7ab9ba [Console] Allow redefinition of application options descriptions

Discussion
----------

[Console] Allow redefinition of application options descriptions

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes

This allows you to redefine an `InputOption` as long as it keeps the same semantic (same default, same name, same alias, same modes). There are two purposes:

- Modifying the description with a more accurate one
- Making sure the option appears in your commands' help

Concrete example: I often want to provide a verbose version of commands. It's an elegant and very common pattern, but I basically can't document what is going to happen if you do `--verbose` since the base Application already defines `--verbose`. Also the `--verbose` option does not appear when you do `console <command> --help`, which means people probably won't think of using that option.
2012-01-09 12:31:41 +01:00
..
ArgvInputTest.php [Command] Fix array option parsing 2011-06-07 14:58:11 +02:00
ArrayInputTest.php replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
InputArgumentTest.php [Console] Improved checks for InputArgument and InputOption constructor's $mode parameter. 2011-08-31 23:53:00 +02:00
InputDefinitionTest.php [Console] tweaked previous merge 2012-01-09 12:22:03 +01:00
InputOptionTest.php [Console] Allow redefinition of application options descriptions 2012-01-09 00:42:35 +01:00
InputTest.php replaced symfony-project.org by symfony.com 2011-03-06 12:40:06 +01:00
StringInputTest.php moved most protected to private in the Console component 2011-03-11 12:53:42 +01:00