|Perl: the Markov chain saw|
(bbfu) (hash, bundling, aliases) Re(2): better cli processingby bbfu (Curate)
|on Nov 03, 2002 at 04:33 UTC||Need Help??|
A couple of things you will want to read up on.
First, you should look into storing the options in a hash, instead of passing a reference to a variable for each one. It's much easier. See Storing options in a hash for info on that.
Second is aliases, or Options_with_multiple_names. Pretty straight-forward.
Last, you want to look into Bundling for info on allowing the -vds 24 form.
And here's some example code!
This will take --verbose --size=24, or --size 24 -vd, or -vds24, or just about any other combination thereof. :)