caf.toolkit.arguments#

Functionality for handling command-line arguments.

Functions

getenv_bool(name, default)

Get environment variable and converts to a boolean.

parse_arg_details(annotation)

Attempt to get argument type from annotation text.

Classes

ModelArguments(model)

Base class for defining command-line arguments from pydantic.BaseModel.

TidyUsageArgumentDefaultsHelpFormatter(prog)

Format usage text to remove optional arguments and just have '[options]'.

Exceptions

TypeAnnotationWarning

Warning for issues parsing type annotations for CLI arguments.