Re: [PEPr] Comment on Console::Console_Getargs
| From: | Alan Knowles | Date: | Thu, 22 Apr 2004 13:13:21 +0000 |
| Subject: | Re: [PEPr] Comment on Console::Console_Getargs | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-28261@lists.php.net to get a copy of this message | ||
I am trying to figure out how to validate the values. Alan, you added a 'required' key to the config array. Others might want 'enum', where the user could only choose a value in a list or even 'either-or', where if one arg is used, another one can't be used, or minlength/maxlength, regex, ... looks familiar ;)I made that up off the top of my head - feel free to do whatever seems sensible :)
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com