Skip to main content

CommaSeparatedList

Comma separated list argument.

Attributes

AttributeTypeDescription
namestring = comma separated listThe 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

NameTypeDescription
valuestringThe raw input string containing comma-separated values to be parsed.
paramclick.ParameterThe parameter object that this value is being bound to.
ctxclick.ContextThe current Click context representing the state of the command execution.

Returns

TypeDescription
listA list of strings parsed from the input value.