[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

optparse, needless argument, mac os x intel

warhero

3/12/2007 5:47:00 AM

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

--
Posted via http://www.ruby-....

2 Answers

Ara.T.Howard

3/12/2007 6:28:00 AM

0

warhero

3/12/2007 6:40:00 AM

0

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

--
Posted via http://www.ruby-....