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

Laurine fails at -d parameter #58

Open
bdolewski opened this issue Feb 19, 2018 · 1 comment
Open

Laurine fails at -d parameter #58

bdolewski opened this issue Feb 19, 2018 · 1 comment

Comments

@bdolewski
Copy link

Hi,
I've updated Laurine to the latest version in my project. However when I set up the script (inside Xcode build phases) then I've got this message:

PROJECT/PROJECT/Localization/Localizations.swift -c -d -
Invalid value(s) for option -d, --delimiter: 

Usage: /Users/xxx/PROJECT/PROJECT/Localization/LaurineGenerator.swift [options]
  -i, --input:
      Required | String | Path to the localization file
  -o, --outpu:
      Optional | String | Path to output file (.swift or .m, depending on your configuration. If you are using ObjC, header will be created on that location. If ommited, output will be sent to stdout instead.
  -l, --langu:
      Optional | String | [swift | objc] | Specifies language of generated output files | Defaults to [swift]
  -d, --delim:
      Optional | String | String delimiter to separate segments of each string | Defaults to [.]
  -c, --capit:
      Optional | Bool | When enabled, name of all structures / methods / properties are automatically CamelCased | Defaults to false
  -b, --baseC:
      Optional | String | Name of the base class | Defaults to "Localizations"
  -t, --strin:
      Optional | String | Name of strings table | Defaults to nil
  -s, --custo:
      Optional | String | A custom superclass name | Defaults to NSObject (only applicable in ObjC)
Command /bin/sh failed with exit code 64

This is my command to run Laurine:

"$LAURINE_PATH" -i "$SOURCE_PATH" -o "$OUTPUT_PATH" -c -d "-"

It does not work with -d "-" neither with -d -.
Do you know how to fix it?

@robtimp
Copy link
Contributor

robtimp commented Apr 18, 2018

@bdolewski Looks like this is due to a current issue with hyphens as parameter arguments. I've opened a PR with a fix

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

No branches or pull requests

2 participants