Pathologically Eclectic Rubbish Lister | |
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?? |
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.
In Section
Seekers of Perl Wisdom
|
|