Skip to content

Commit

Permalink
example of nested command line arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Buchanan committed Jan 30, 2018
1 parent 383266e commit 4d03c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ appCfg.config // same as appCfg.configs[appCfg.configs.length - 1]

Given your application name (`appname`), rc will look in all the obvious places for configuration.

* command line arguments (parsed by minimist)
* command line arguments, parsed by minimist _(e.g. `--foo baz`, also nested: `--foo.bar=baz`)_
* environment variables prefixed with `${appname}_`
* or use "\_\_" to indicate nested properties <br/> _(e.g. `appname_foo__bar__baz` => `foo.bar.baz`)_
* if you passed an option `--config file` then from that file
Expand Down

0 comments on commit 4d03c13

Please sign in to comment.