akkudoktoreos.server.rest.cli.cli_parse_args

akkudoktoreos.server.rest.cli.cli_parse_args(argv: list[str] | None = None) tuple[Namespace, list[str]]

Parse command-line arguments for the EOS CLI.

This function parses known EOS-specific command-line arguments and returns any remaining unknown arguments unmodified. Unknown arguments can be forwarded to other subsystems (e.g. Uvicorn).

If argv is None, arguments are read from sys.argv[1:]. If argv is provided, it is used instead.

Parameters:

argv – Optional list of command-line arguments to parse. If omitted, the arguments are taken from sys.argv[1:].

Returns:

  • A namespace with parsed EOS CLI arguments.

  • A list of unparsed (unknown) command-line arguments.

Return type:

A tuple containing