[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: optparse. many-characters option with single dash

Nobuyoshi Nakada

7/13/2007 6:12:00 AM

Hi,

At Fri, 13 Jul 2007 01:09:31 +0900,
Andreas S wrote in [ruby-talk:259101]:
> I looked at getoptlong and optparse and I don't think any of
> them allow multiple characters with a single dash
> (-nodisplay, -nosplash, etc). But I'm no expert so I might
> have overlooked it.
>
> Before I try to code this myself, I wonder if it is actually
> possible with optparse or any other existing library to have
> this many-characters option with single dash. Yes, it won't
> be POSIX correct, but that's ok for me.

getoptlong is based on GNU getoptlong function, and optparse is
inspired by it too. So, long options with single dash are not
the target of them.

--
Nobu Nakada