spice_ev.util.set_options_from_config

spice_ev.util.set_options_from_config(args, check=None, verbose=True)

Update given options from config file.

Read config file, try to parse options, ignore comment lines (begin with #).

Parameters:
  • args (argparse.Namespace) – input arguments

  • check (argparse.ArgumentParser) – check config options against argparser

  • verbose (bool) – gives final overview of arguments

Raises:
  • argparse.ArgumentError – Raised if wrong option values are given

  • Exception – Raised if unknown option is given or value could not be converted