cli

trap.cli.parse_bool(value)[source]
trap.cli.filter_none_values_from_dict(dict_to_filter: dict)[source]
trap.cli.update_params_from_config_file(config_file, params)[source]

Update the parameters that were not found on the command line with those in the config file.

Parameters:
  • config_file (str) – The path to the configuration file. Must be a .toml format.

  • params (dict) – The parameters as parsed by argparse from the command line. This dictionary is updated in-place

Return type:

None

trap.cli.construct_argument_parser(require_command=False, require_processing_args=True)[source]
trap.cli.parse_arguments(require_command=False, require_processing_args=True)[source]
trap.cli.run_batch(params=None)[source]
trap.cli.view(params=None)[source]
trap.cli.main()[source]