moderna / ma-image-resize-tool

An generic image resizing tool based on node.js
MIT License
3 stars 1 forks source link

Allow different location for config-local.json #7

Open ghost opened 8 years ago

ghost commented 8 years ago

Most of the time I want to edit the config-local.json file but have to traverse deep down to the image-tool location (_stuff\source\ in our case). It would be nice if the config-local.json could be located in a different location than the config.json and instead refer to it via a parameter but still use the config.json's location as the "working directory".

geo-at-github commented 7 years ago

In fact "config-local" can be located anywhere. It can be specified with the "--config-local" parameter. ma-image-resize-tool --config config.json --config-local config-local.json

Though, the path is relative to the current working directory, not "config.json"'s location.