Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to convert from arb #5

Closed
haarts opened this issue Sep 23, 2019 · 3 comments
Closed

Unable to convert from arb #5

haarts opened this issue Sep 23, 2019 · 3 comments

Comments

@haarts
Copy link

haarts commented Sep 23, 2019

I must be missing something incredibly obvious. I've installed the package but I'm unable to run arb-converter:

$ ./arb-converter from-arb /tmp/intl_de.arb
Please specify an option to determine the type of conversion
$ ./arb-converter from-arb --to-hierarchical-json /tmp/intl_de.arb                                                                                       
error: missing required argument `file'

I'm trying with node v12.10.0 (to be exact this Docker image: https://hub.docker.com/_/node/).

@jorgecoca
Copy link
Contributor

This is an example of how to run it:

arb-converter from-arb ./lib/i18n/l10n/intl_messages.arb --to-hierarchical-json ./tmp/intl_messages.json

Also, you can use --help to get more info:

$ arb-converter from-arb --help
Usage: from-arb [options] <file>

Specify the location of the ARB file to be converted

Options:
  --to-hierarchical-json [dir]  Convert to Hierarchical JSON (https://support.oneskyapp.com/hc/en-us/articles/214059578-Hierarchical-JSON-Format-json-)
  -h, --help                    output usage information

@haarts
Copy link
Author

haarts commented Sep 23, 2019

Ah! I missed that I needed to specify the output file. That wasn't obvious (to me) from the help output. Closing.

@jorgecoca
Copy link
Contributor

I have created #6 to provide better support in our --help logs. Thanks for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants