Skip to content

Commit

Permalink
small improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
schlichtanders committed Mar 28, 2024
1 parent 6003965 commit 9d7feea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ env = Dict(
)

using ConfigurationsENV

config = from_env(Opt2, env, prefix="PREFIX_", separator="_")
# Opt2(Opt1(true, nothing), "hello world")

Expand All @@ -37,8 +38,8 @@ In case you just want to parse a subset of the options fields from environment v

```julia
env = Dict("PREFIX__A__A" => "true")
nested_dict = from_env(Opt2, env, prefix="PREFIX__", return_dict=true)

nested_dict = from_env(Opt2, env, prefix="PREFIX__", return_dict=true)
# DataStructures.DefaultDict{String, Any, typeof(ConfigurationsENV.RecursiveDict)} with 1 entry:
# "a" => DefaultDict{String, Any, typeof(RecursiveDict)}("a"=>true)

Expand Down

0 comments on commit 9d7feea

Please sign in to comment.