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.