There is a frequent pattern in command-line programs where there is a configuration option which is overridden by an environment variable, if present, which is overridden by a command-line option, if present. This is a common pattern and should be factored out.
There is a frequent pattern in command-line programs where there is a configuration option which is overridden by an environment variable, if present, which is overridden by a command-line option, if present. This is a common pattern and should be factored out.