zut.command.ParsedDoc

class zut.command.ParsedDoc(help, description, epilog, param_helps, short_options)

Bases: NamedTuple

__init__()

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

description

Alias for field number 1

epilog

Alias for field number 2

help

Alias for field number 0

param_helps

Alias for field number 3

short_options

Alias for field number 4

count(value, /)

Return number of occurrences of value.

description: str | None

Alias for field number 1

epilog: str | None

Alias for field number 2

help: str | None

Alias for field number 0

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

param_helps: dict[str, str]

Alias for field number 3

short_options: dict[str, str]

Alias for field number 4