nifreeze.cli.parser module

Parser module.

nifreeze.cli.parser.parse_args(args: list | None = None, namespace: Namespace | None = None) Namespace[source]

Parse args and run further checks on the command line.

Parameters:
  • args (list of str, optional) – List of strings representing the command line arguments. Defaults to None.

  • namespace (Namespace, optional) – An object to parse the arguments into. Defaults to None.

Returns:

An object holding the parsed arguments.

Return type:

Namespace