Docopt::ConfigOptions
Constructors
Instance methods
Get a configuration value with precedence: CLI > env vars > config file > docopt defaults
args
Values as docopt itself produces them; only defaults and config/env sources can widen to Int64/Float64 (see OptionValue).
Values as docopt itself produces them; only defaults and config/env sources can widen to Int64/Float64 (see OptionValue).
config_file
Sourcedocopt_defaults
Sourceenv_vars
SourceWhether the key resolves to a value from any tier, consistent with []: CLI, env vars, config file (with key fallbacks) and docopt defaults.
to_config_yaml
The effective configuration (every option declared in the doc, resolved through the full precedence chain) as YAML text. Keys are snake_case so the output can be used as a config file directly; options that resolve to nil are omitted.