Command-line Config Parameters as Arguments

Making hugo a part of an event-driven or crontab auto-build system (as many others) and am currently setting a setDate config value dynamically in the config.toml file by changing it programmatically, which got me to thinking being able to pass in one or two key/value pairs from the hugo command that automatically get written/updated in the config file might be handy. Just saves the step to automate the changing of those lines in a script before calling hugo for the compile. Not a huge issue, just posting to get thoughts on.

Hugo uses Viper for config management. I haven’t tried it, but can you use the env settings to override your config file settings?