arb-converter-cli icon indicating copy to clipboard operation
arb-converter-cli copied to clipboard

Improve `--help` output to provide better messsages and usage of the library

Open jorgecoca opened this issue 5 years ago • 4 comments

As stated in #5 , users might have trouble realizing what arguments they need to provide in order to use arb-converter.

jorgecoca avatar Sep 23 '19 13:09 jorgecoca

In the meanwhile what is the proper command to convert json -> arb?

I've tried arb-converter to-arb --from-hierarchical-json .\en_GB\translations.json .\output.arb but no file is added (console output is empty)

afpatmin avatar Oct 29 '19 09:10 afpatmin

It'd be like this:

arb-converter to-arb ~/Downloads/ --from-hierarchical-json ~/Downloads/

This will get all the *.json files in Downloads, and convert them to arb inside Downloads

jorgecoca avatar Oct 29 '19 13:10 jorgecoca

@jorgecoca I also made the same mistake as @afpatmin the first time I used the tool. I think it might be better to adjust the cli to align with expectations. Thoughts?

arb-converter to-arb --from-hierarchical-json ./path/to/input ./path/to/output

felangel avatar Oct 29 '19 15:10 felangel

Yep, I have nothing against that, especially if it is a pain point for many devs. Will try to work on this soon ;)

jorgecoca avatar Oct 29 '19 15:10 jorgecoca