Optparse, needless argument, mac os x intel

I’ve just started using optparse. I’m hitting this needless argument
error when one of my commandline args excepts strings… I’ve looked
around on google seeing that this was a bug that was fixed at some
point. How can I get around it?

thanks…

On Mon, 12 Mar 2007, Aaron S. wrote:

I’ve just started using optparse. I’m hitting this needless argument
error when one of my commandline args excepts strings… I’ve looked
around on google seeing that this was a bug that was fixed at some
point. How can I get around it?

it means that you defined are argument like this

‘–foo’

but are giving it like this on command line

a.rb --foo=value

if you want an option to take values use

‘–foo=value’
‘–foo=this_can_be_anyword’

regards.

-a

a.rb --foo=value

if you want an option to take values use

‘–foo=value’
‘–foo=this_can_be_anyword’

regards.

-a

cool thanks.
-a