Given a configuration and a path, return the configuration at that path.
Given a configuration and a path, return the configuration at that path.
If the path is invalid or points to a value which is NOT a configuration, a "synthetic" configuration will be created for the path to either hold the value at the path or the default value
the configuration to parse
the configuration path
the value to display for an invalid path
the sub-configuration for the given path
parses the string arguments as a configuration.
parses the string arguments as a configuration.
Any arguments in the form "-key=value" will override any other values.
The arguments otherwise are expected to be paths to configuration files, either on the classpath or as absolute paths.
Left-most configurations are used in preference over ones further to the right.
the arguments to parse
Either a Left with an error message or a Right with an unresolved, parsed configuration
Convenience function to parses the arguments and return a resolved configuration
Convenience function to parses the arguments and return a resolved configuration
the user arguments to parse
the default fallback configuration
can convert command-line arguments (a Seq[String]) into an Either[String, Config] representing either a successfully merged configuration (Right(config)) or an error.
The user arguments can be:
The values are resolved left-to right, with any key/value settings taking precidence over any file settings.
would use the configuration value 'bar' for property 'foo' and "1,2,3" for property x.y.z over any properties in myConf.conf or anotherConf.properties.
Then any values in myConf.conf would have its configuration settings take precidence over anotherConf.properties