Reads a configuration data from a config file and
command-line arguments.
Command-line arguments will override config file entries.
Config file will override defaults. Only fields marked with
@cli and/or @cfg UDA will be updated, any other symbols will be ignored.
Configuration file location will be checked in this order:
- current working directory
- same folder as the binary
- $XDG_CONFIG_HOME/appname.cfg (Posix) or %LOCALAPPDATA%/appname.cfg (Windows)
Reads a configuration data from a config file and command-line arguments.
Command-line arguments will override config file entries. Config file will override defaults. Only fields marked with @cli and/or @cfg UDA will be updated, any other symbols will be ignored.
Configuration file location will be checked in this order: - current working directory - same folder as the binary - $XDG_CONFIG_HOME/appname.cfg (Posix) or %LOCALAPPDATA%/appname.cfg (Windows)