function MarkdownDescriptor::describeInputArgument
Overrides Descriptor::describeInputArgument
1 call to MarkdownDescriptor::describeInputArgument()
- MarkdownDescriptor::describeInputDefinition in vendor/
symfony/ console/ Descriptor/ MarkdownDescriptor.php - Describes an InputDefinition instance.
File
-
vendor/
symfony/ console/ Descriptor/ MarkdownDescriptor.php, line 46
Class
- MarkdownDescriptor
- Markdown descriptor.
Namespace
Symfony\Component\Console\DescriptorCode
protected function describeInputArgument(InputArgument $argument, array $options = []) : void {
$this->write('#### `' . ($argument->getName() ?: '<none>') . "`\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)) . '`');
}