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/Fixtures/definition_asxml.txt
Ryan Weaver 7efb4630b8 [Command] Changing the InputOption::PARAMETER_* constants to InputOption::VALUE_* to more accurately reflect that these constants refer to the value or lack of value assigned to a particular option (e.g. --verbose or --em=doctrine).
To keep language consistent, three methods were changed in InputOption:

 * `InputOption::acceptParameter()` -> `InputOption::acceptValue()`
 * `InputOption::isParameterRequired()` -> InputOption::isValueRequired()`
 * `InputOption::isParameterOptional()` -> `InputOption::isValueOptional()`

The InputDefinition::asXml() method was also modified to update the `accept_value` and `is_value_required` attributes.
2010-11-27 19:56:27 +01:00

28 lines
844 B
Plaintext

<?xml version="1.0" encoding="UTF-8"?>
<definition>
<arguments>
<argument name="foo" is_required="0" is_array="0">
<description>The bar argument</description>
<defaults/>
</argument>
<argument name="bar" is_required="0" is_array="1">
<description>The foo argument</description>
<defaults>
<default>bar</default>
</defaults>
</argument>
</arguments>
<options>
<option name="--foo" shortcut="-f" accept_value="1" is_value_required="1" is_multiple="0">
<description>The foo option</description>
<defaults/>
</option>
<option name="--bar" shortcut="-b" accept_value="1" is_value_required="0" is_multiple="0">
<description>The foo option</description>
<defaults>
<default>bar</default>
</defaults>
</option>
</options>
</definition>