According to --help it should just load a config file, but in fact it tries to load some kind of module:
$ ./cli.js -c config.json
Error: Cannot find module 'config.json'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/.../node_modules/img.bi-server/cli.js:13:14)
at after (/.../node_modules/cli/cli.js:1057:18)
at Object.cli.main (/.../node_modules/cli/cli.js:1062:9)
at Object.<anonymous> (/.../node_modules/img.bi-server/cli.js:10:5)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:148:18)
at node.js:405:3
It only works when I'll specify the path like this:
According to
--help
it should just load a config file, but in fact it tries to load some kind of module:It only works when I'll specify the path like this:
It should however handle both cases.