loco-cli icon indicating copy to clipboard operation
loco-cli copied to clipboard

When setting the locales-dir as a param, it is ignored when already specified in the .locorc.json config file

Open eliaslecomte opened this issue 2 years ago • 1 comments

If you have the localesDir set in your locorc.json file, and also set it via a CLI flag (-d, --locales-dir <path>), the localesDir from the config file takes precedency, while I would have expected the CLI flag.

eliaslecomte avatar May 15 '23 08:05 eliaslecomte

As the CLI adds defaults eg: localesDir: ".", it makes more sense that the config file is the overwriting truth, no? If we do want the CLI to overwrite the config file, we'd need to extract these defaults from cli.ts and add them in the options.ts. It's possible, but do we want to do that? @robrechtme

VNDRN avatar Sep 09 '24 13:09 VNDRN