optparse, needless argument, mac os x intel

A

Aaron Smith

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..
 
A

ara.t.howard

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top