9.2.5. CLI Functions

Provide functions for CLI parser.

junifer.cli.parser.parse_elements(element, config)

Parse elements from cli, or from the configuration if not in the cli.

Parameters:
elementtuple of str

The element(s) to operate on.

configdict

The configuration to operate using.

Returns:
list or None

The element(s) as list, or None (all the elements) if they are not in the command-line options nor in the configuration.

Raises:
ValueError

If the elements key of the configuration has no value.

Warns:
RuntimeWarning

If elements are specified both via the command-line options and the configuration file.