cli_args
bool
def bool(
default = False,
doc: str = "",
*,
short = ...,
) -> bxl.CliArgs
Accepts "true" or "false" from cli, and get a bool
in bxl. If not given, will get false
enum
def enum(
variants: list[str] | tuple[str, ...],
/,
default = ...,
doc: str = "",
*,
short = ...,
) -> bxl.CliArgs
Takes a set of defined values in variants
, and gets a str
in bxl.
e.g. cli.args.enumeration(["foo", "bar"])
defines an arg that only accepts "foo" or "bar".
float
def float(
default = ...,
doc: str = "",
*,
short = ...,
) -> bxl.CliArgs
Takes an arg from cli, and gets a float
in bxl
int
def int(
default = ...,
doc: str = "",
*,
short = ...,
) -> bxl.CliArgs
Takes an arg from cli, and gets a int
in bxl