# from Geoffrey Leach
# on Monday 29 June 2009 12:34:
>The key difference between Auto and Euclid is that Simon wanted to
>subject the POD writer to minimal inconvienence. I should have
>mentioned that option processing results in a call to main::foo, which
>would permit the user to do whatever checking was needed.
I have not looked at Getopt::Auto lately, but my Getopt::AsDocumented
does some of what you're wanting to accomplish. I would say that
Getopt::Auto could be implemented on top of AsDocumented (the main
difference would be the calling of main::foo(), but also the options
object), but I won't guarantee compatibility between Getopt::Base and
Getopt::Long (and have no plans to do so.)
My approach to what the pod contains was based on showing the user the
information, so just:
=item --foo FOO (number)
Getopt::Base has been designed to do some mild validation, but does not
actually do it yet (everything is a string at the moment.)
See also Getopt::Abridged, which is like a gateway drug to
Getopt::AsDocumented.
--Eric
--
[...proprietary software is better than gpl because...] "There is value
in having somebody you can write checks to, and they fix bugs."
--Mike McNamara (president of a commercial software company)
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------