Optparse. many-characters option with single dash

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.

Thanks in advance for your reply.

-andre

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.