7efb4630b8
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.
28 lines
844 B
Plaintext
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>
|