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-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
optparse, needless argument, mac os x intel
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password