From d82c9736425716d16898058b74f0163dffffdf4c Mon Sep 17 00:00:00 2001 From: ronanM Date: Tue, 17 Jan 2017 10:55:08 +0100 Subject: [PATCH] Command line for alternative config `-Dconfig.file` Each time I search this information, I search `-D` in this README but can't find it **quickly**, so need to google it, then go to stackoverflow, etc. With this little example this information quickly reachable. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e53713c6..723d46b5 100644 --- a/README.md +++ b/README.md @@ -251,7 +251,8 @@ library examples in `examples/` show how to accept a custom config while defaulting to `ConfigFactory.load()`. For applications using `application.{conf,json,properties}`, -system properties can be used to force a different config source: +system properties can be used to force a different config source +(e.g. from command line `-Dconfig.file=path/to/config-file`): - `config.resource` specifies a resource name - not a basename, i.e. `application.conf` not `application`