[PEPr] Comment on Console::Console_Getargs

From: Date: Thu, 22 Apr 2004 12:44:28 +0000
Subject: [PEPr] Comment on Console::Console_Getargs
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-28259@lists.php.net to get a copy of this message
Bertrand Mansion (http://pear.php.net/user/mansion) has commented on the proposal for Console::Console_Getargs. Comment: I have removed the useless if/else and fixed a bug in default-if-set feature. I haven't uploaded the new sources yet as I will follow your comments and change the config to an associative array. 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 ;) It looks like a larger Rule package could handle that better. Still, I think it is important to keep min/max in the Console_Getargs package as, even if they can help the validation, it is also used for the arguments parsing. Proposal information: http://pear.php.net/pepr/pepr-proposal-show.php?id=58 -- Sent by PEPr, the automatic proposal system at http://pear.php.net

« previous php.pear.dev (#28259) next »