function ReStructuredTextDescriptor::describeInputArgument
Overrides Descriptor::describeInputArgument
1 call to ReStructuredTextDescriptor::describeInputArgument()
- ReStructuredTextDescriptor::describeInputDefinition in vendor/
symfony/ console/ Descriptor/ ReStructuredTextDescriptor.php - Describes an InputDefinition instance.
File
-
vendor/
symfony/ console/ Descriptor/ ReStructuredTextDescriptor.php, line 58
Class
Namespace
Symfony\Component\Console\DescriptorCode
protected function describeInputArgument(InputArgument $argument, array $options = []) : void {
$this->write($argument->getName() ?: '<none>' . "\n" . str_repeat($this->paragraphsChar, Helper::width($argument->getName())) . "\n\n" . ($argument->getDescription() ? preg_replace('/\\s*[\\r\\n]\\s*/', "\n", $argument->getDescription()) . "\n\n" : '') . '- **Is required**: ' . ($argument->isRequired() ? 'yes' : 'no') . "\n" . '- **Is array**: ' . ($argument->isArray() ? 'yes' : 'no') . "\n" . '- **Default**: ``' . str_replace("\n", '', var_export($argument->getDefault(), true)) . '``');
}