Re: Flags package for PHP?
| From: | Jim Lucas | Date: | Thu, 16 Oct 2008 17:31:05 +0000 |
| Subject: | Re: Flags package for PHP? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281991@lists.php.net to get a copy of this message | ||
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