eclipse-builder icon indicating copy to clipboard operation
eclipse-builder copied to clipboard

Command line args not working

Open nstahle opened this issue 10 years ago • 3 comments

Seems to be something wrong with the builder script or my bash env.? . Can get it to accept command line args. Fails on "No platforms defined. Terminating..." when using the examples. I use GNU bash, version 4.3.42(1)-release (x86_64-apple-darwin14.5.0).

nstahle avatar Oct 07 '15 12:10 nstahle

@nstahle Can you show me the exact command that you executed?

ferstl avatar Oct 08 '15 04:10 ferstl

Hej!

Thanks for the reply. I got it working now. Don't know if it is my command args that are wrong but i did changed this:

#tmp=`getopt -o $OPTIONS_SHORT -l $OPTIONS_LONG -- "$@"`
tmp=$@

And now it seems to run.

Thanks for an awesome script!!!!

nstahle avatar Oct 08 '15 06:10 nstahle

It turns out that the BSD version of getopt [1](the one on your Mac) is totally different from the GNU version (the one that the script assumes). Your workaround basically turns off the option parsing. But this seems to be not a big problem since the script makes additional checks to ensure that all required options are set. I'll have a look if I can eliminate the getopt call.

ferstl avatar Oct 12 '15 05:10 ferstl