cmd line parsing emulating sv[kn]
Paul Makepeace
london.pm.org at paulm.com
Thu Feb 2 10:11:23 GMT 2006
I have a script where I'd like to emulate svn's -r option. It goes like,
-r 1676
-r1676 (i.e. whitespace not significant)
-r168:200 (I can probably manage to parse out the two numbers...)
I've used Getopt::Long (since I know it) with GetOptions("r=s" => \$revs)
but Go::L seems to require a space between switch & arg which is confusing
for anyone using sv[kn].
Any suggestions which module to use?
Is there a Giant List of CPAN CLI Parsers and Their Features anywhere?
Paul
--
Paul Makepeace .............................. http://paulm.com/inchoate/
"What is the answer to life the universe and everything? Cooked
croissants on the brink of disaster."
-- http://paulm.com/toys/surrealism/
More information about the london.pm
mailing list