Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 ( #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
Node Status?
node history
Node Type: note [id://806721]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2019-10-18 13:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?