Re: [Module::Build] ask() and you will receive
Status: Beta
Brought to you by:
kwilliams
From: David W. <da...@ki...> - 2006-04-14 15:51:26
|
On Apr 14, 2006, at 01:07, Randy W. Sims wrote: > Does the callback get called on every value the user enters? =20 > Regardless of whether it is an open ended query or a multiple =20 > choice selection? Yes. Gotta make sure that whatever they type in is valid. > Does it get called on values entered as command line options? or =20 > environment variables? Let's see=85yes, it gets called on command-line options and environment =20= variables. Anywhere that the user is putting in the option, you gotta =20= check it. Only defaults are ignored. > Using Text::Abbrev to accept short unique abbreviations for =20 > answers, do we validate before or after expansion? I would do it after, but if there's an error, include the abbreviated =20= version in the error message. Best, David= |