OptionsBase
- class OptionsBase
Mixin for subcommand option dataclasses.
Provides
from_argsso the CLI dispatcher can construct an options instance from a parsedargparse.Namespacewithout spelling each field name a third time. Field names on the subclass dataclass must match the attribute names argparse produces (argparsealready normalises--foo-barintoargs.foo_bar).Members defined in
OptionsBase(1 member)
from_argsRWBuild an options instance by pulling each dataclass field off
args. Attributes