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
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
..
Command fixed CS 2011-12-18 14:36:25 +01:00
Fixtures [Console] tweaked previous merge 2012-01-09 12:22:03 +01:00
Formatter removed unused use statements 2011-11-24 07:16:14 +01:00
Helper Another style fix. 2011-11-30 02:46:26 +05:00
Input merged branch Seldaek/console_opts2 (PR #3061) 2012-01-09 12:31:41 +01:00
Output Add missing "tearDown" functions, and some missing variable declaration (this saves for me almost 20MB when run all tests) 2011-06-16 15:06:36 +02:00
Tester [Console] added an exception when overriding an existing argument (added some unit tests for option and arguments overriding) 2011-11-07 17:22:50 +01:00
ApplicationTest.php merged 2.0 2012-01-09 11:51:30 +01:00