Skip to content

args

Parse command line arguments.

parse_args

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

Parse cmd line arguments.

Parameters:

Name Type Description Default
conf Config

configuration.

required
arglist Optional[list[str]]

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.