Parses one string into an A; failures are messages for the user.
choice_keys and path_type describe choices and paths to help
and completions.
Attributes#
| Attribute | Type | Description |
|---|---|---|
tag | str | |
parse | Callable[[str], Effect[A_co, str, Environment]] | |
choice_keys | tuple[str, ...] | None = None | |
path_type | PathType | None = None |
Functions#
__init__#
__init__(tag, parse, choice_keys=None, path_type=None) -> None| Parameter | Type | Description |
|---|---|---|
tag | str | |
parse | Callable[[str], Effect[A_co, str, Environment]] | |
choice_keys | tuple[str, ...] | None = None | |
path_type | PathType | None = None |