Skip to content

cli

Parse command line arguments.

parse_args

parse_args(
    conf: Config, arglist: list[str] | None = None
) -> Callable[[Config], None]

Parse cmd line arguments.

Parameters:

Name Type Description Default
conf Config

configuration.

required
arglist list[str] | None

the list of cmd line arguments. If set to None, the arguments are taken from :attr:sys.argv.

None

Returns:

Type Description
Callable[[Config], None]

the function implementing the sub command to be executed.