I'd like something like the following behavior when a configuration file setting name="Universe" is available at the default location, and name="Planet" is available at custom.cfg. In particular, I'd like the user to explicitly ask to load the configuration whenever it's used, but not require them to provide the path to the default location.
$ hello
Hello World!
$ hello --config
Hello Universe!
$ hello --config custom.cfg
Hello Planet!
$ hello --name Multiverse
Hello Multiverse!
$ hello --name Multiverse --config
Hello Multiverse!
I'd like something like the following behavior when a configuration file setting
name="Universe"is available at the default location, andname="Planet"is available atcustom.cfg. In particular, I'd like the user to explicitly ask to load the configuration whenever it's used, but not require them to provide the path to the default location.