Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: better cli processing

by Aristotle (Chancellor)
on Nov 02, 2002 at 21:48 UTC ( [id://209998]=note: print w/replies, xml ) Need Help??


in reply to Re: better cli processing
in thread better cli processing

It's not possible with Getopt::Long. You can only use long options with that, and you can only use short options with Getopt::Std. What you want to do requires Getopt::Mixed.

Makeshifts last the longest.

Replies are listed 'Best First'.
(bbfu) (Getopt::Long and bundling) Re(3): better cli processing
by bbfu (Curate) on Nov 03, 2002 at 04:16 UTC

    Actually, I believe it is possible with Getopt::Long. Take a look at the bundling option.

    Update: Oh, and of course it helps to use the 'name|n' for defining the short form, since it's not done automatically. :)

    bbfu
    Black flowers blossum
    Fearless on my breath

      I stand corrected. Thanks!

      Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-19 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found