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…
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs