Configuration for the namelist diff tool follows the XDG standard. The configuration should be stored in a YAML file.
You can use the function write_default_config to generate a configuration file with the hard-coded defaults. Command line access for this command is available via:
$ nmldiff --write-default-config
The default configuration will be written to ${XDG_CONFIG_HOME}/nmldiff/nmldiff.yaml
${XDG_CONFIG_HOME}/nmldiff/nmldiff.yaml
Configuration is loaded in the following order:
Command line Config file thats name is declared on the command line. Environment vars Local config file (if exists) Global config file (if exists) Hard-coded defaults in the code
Command line
Config file thats name is declared on the command line.
Environment vars
Local config file (if exists)
Global config file (if exists)
Hard-coded defaults in the code
Configuration
debug (bool) –
Switch debug mode on and off.
Defaults to 'false'.
'false'
color (bool) –
Colorize output of the diff
Defaults to 'true'.
'true'
keep_mvstream (bool) –
Consider mvstream (relevant for namelist.echam) chapters in the diff
keep_set_stream (bool) –
Consider set_stream chapters (relevant for namelist.echam) in the diff
keep_set_stream_element (bool) –
Consider set_stream_element chapters (relevant for namelist.echam) in the diff
cleanup_paths (bool) –
If the specified string is a path, duplicate slashes (//) will be replaced with single slashes (/)
//
/