Re: Flags package for PHP?

From: Date: Mon, 27 Oct 2008 09:38:11 +0000
Subject: Re: Flags package for PHP?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-282484@lists.php.net to get a copy of this message
Thanks for the advice! I had initially tried it and couldn't seem to get getopt2 working (and getopt was supposedly deprecated), but eventually found a good example here: http://www.sitepoint.com/article/php-command-line-1/3/ On Thu, Oct 16, 2008 at 10:31 AM, Jim Lucas <lists@cmsws.com> wrote: > Waynn Lue wrote: > > I'm running some command-line scripts that are taking more and more > > arguments, and I'm wondering whether anyone's used a good flags package > for > > PHP? Support for string/int/boolean arguments would be nice, otherwise > I'll > > just hack together my own. > > > > Thanks for any advice, > > Waynn > > > > I would maybe look into using a standard ini file and then use the > parse_ini_file [1] function to bring it all together again. > > 1 - http://us2.php.net/manual/en/function.parse-ini-file.php > > -- > Jim Lucas > > "Some men are born to greatness, some achieve greatness, > and some have greatness thrust upon them." > > Twelfth Night, Act II, Scene V > by William Shakespeare > >

« previous php.general (#282484) next »