Maybe I am wrong, but this doesn't feel to be the truth:
|
* `{:system, :integer, "ENV_NAME"}` - same as `{:system, :integer, "ENV_NAME", nil}`; |
For me, I get an ArgumentError when using {:system, :integer, "ENV_NAME"}:
** (Mix) Could not start application example: exited in: Example.Application.start(:normal, [])
** (EXIT) an exception was raised:
** (ArgumentError) can't fetch value for key `Example.Config` of application `:example`, can not resolve key ENV_NAME value via adapter Elixir.Confex.Adapters.SystemEnvironment
But it works fine when using {:system, :integer, "ENV_NAME", nil}. So, it is not the same.
Maybe I am wrong, but this doesn't feel to be the truth:
confex/lib/confex.ex
Line 52 in fa436d1
For me, I get an
ArgumentErrorwhen using{:system, :integer, "ENV_NAME"}:But it works fine when using
{:system, :integer, "ENV_NAME", nil}. So, it is not the same.