public static CliConfig fromFile ( final File defaultsFile , final Map < String , String > environmentVariables ) throws IOException , URISyntaxException { final Config config ; if ( defaultsFile . exists ( ) && defaultsFile . canRead ( ) ) { config = ConfigFactory . parseFile ( defaultsFile ) ; } else { config = ConfigFactory . empty ( ) ; } return fromEnvVar ( config , environmentVariables ) ; }
Returns a CliConfig instance with values parsed from the specified file .