mmeson.cli module

Command-line interface module.

mmeson.cli.parse_args(args: list[str]) Namespace

Parses arguments passed to the CLI. Arguments must start with the first “real” arg, i.e. without executable.

Parameters

argslist of str to parse as command-line arguments.

Returns

argparse.Namespace with the parsed arguments containing builddir and bin.

mmeson.cli.main(args: Optional[list[str]] = None) int

Runs the command-line interface. Arguments must start with the first “real” arg, i.e. without executable.

Parameters

argslist of str to parse as command-line arguments. If None then sys.argv is used (excluding the first entry which is the executable).