Skip to content

Commit e2db7de

Browse files
committed
Issue infinitered#573: loadConfig Documentation Parameters Reversed
1 parent b9d215c commit e2db7de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/toolbox-config.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ module.exports = {
5050
} = toolbox
5151

5252
// use cosmiconfig directly: directory (string) & brand (string)
53-
const myConfig = loadConfig(process.cwd(), brand)
53+
const myConfig = loadConfig(brand, process.cwd())
5454
// or
55-
const myConfig = loadConfig('~/.myconfig/', 'movie')
55+
const myConfig = loadConfig('movie', '~/.myconfig/')
5656

5757
// now access myConfig
5858
info(myConfig.shirtSize)

0 commit comments

Comments
 (0)