Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How can I have both short and long options with Getopt::Long?

by bellaire (Hermit)
on Nov 12, 2009 at 13:31 UTC ( [id://806721]=note: print w/replies, xml ) Need Help??


in reply to How can I have both short and long options with Getopt::Long?

It doesn't look like you can do exactly what you want. You can turn use no_auto_abbrev as others have noted and specify 'v|verbose' as your option, but this will allow '--v', which you explicitly stated you don't want.

I think that's as close as you can get, since although bundling will not allow long options with a single dash, there is no similar option that disables abbreviated options with a double dash.

  • Comment on Re: How can I have both short and long options with Getopt::Long?

Replies are listed 'Best First'.
Re^2: How can I have both short and long options with Getopt::Long?
by Anonymous Monk on Nov 12, 2009 at 14:46 UTC

    Thanks everyone. If using bundling, no_ignore_case and no_auto_abbrev is the closest I can get than, well, it's the closest I can get.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://806721]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-23 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found