Skippy
1/28/2006 9:02:00 PM
Hi Daniel,
Understood! Thanks for the clear,comprehensive and timely response.
Regards,
Richard
"Daniel Calvelo" <dca.gis@gmail.com> wrote in message
news:1138478510.332905.132100@g47g2000cwa.googlegroups.com...
> Remember that, being of UNIX lineage, ruby follows its conventions. One
> of those conventions is options vs. long-options. Long options I think
> were a GNU invention, intended to make command options (traditionally
> one letter after hyphen) more mnemonic. Long options start with double
> hyphens, and short options with one. A single double hyphen signals the
> end of options. Thus the long-option equivalent of "-v" is "--version".
>
> "-version" as an option is parsed as a compound of "-x" options with x
> in v,e,r,s,i,o,n; -e -i and -r require parameters, so they should parse
> the following command-line arguments as their parameters.
>
> My guess: RUBYOPT is additional options, and is "pasted-in" the
> command-line. So one of e,i options ate the "r" from 'rubygems' and
> then the -r option tried to load the library 'ubygems'.
>
> Experiment a little and you might understand exacly how the option
> parameters are used, and in what order.
>
> Daniel.
>