CommaSeparatedList
Comma separated list argument.
Attributes
| Attribute | Type | Description |
|---|---|---|
| name | string = comma separated list | The human-readable name of the parameter type used for error messages and help text. |
Methods
convert()
@classmethod
def convert(
value: string,
param: click.Parameter,
ctx: click.Context
) - > list
Converts a comma-separated string into a list of individual string elements.
Parameters
| Name | Type | Description |
|---|---|---|
| value | string | The raw input string containing comma-separated values to be parsed. |
| param | click.Parameter | The parameter object that this value is being bound to. |
| ctx | click.Context | The current Click context representing the state of the command execution. |
Returns
| Type | Description |
|---|---|
list | A list of strings parsed from the input value. |