SeparatedPathType
Click option type that accepts a list of values separated by the OS's path separator (:, ; on Windows). Each value is validated as a :class:click.Path type.
Methods
convert()
@classmethod
def convert(
value: t.Any,
param: click.Parameter | None,
ctx: click.Context | None
) - > t.Any
Converts a string value, potentially containing multiple path items separated by the OS path separator, into a list of validated path strings. This method is used by Click to process command-line arguments that represent multiple file paths.
Parameters
| Name | Type | Description |
|---|---|---|
| value | t.Any | The input string value to convert, which may contain multiple path items. |
| param | `click.Parameter | None` |
| ctx | `click.Context | None` |
Returns
| Type | Description |
|---|---|
t.Any | A list of validated path strings. |