Menu

GetOpts

I'm currrently working on a class that provide the same purpose as GetOpts but with three significants changes:

1. The parameter (needs a prefix) is multi characters.
(exemple: -t can be -temp)

2. Values can be multiple for one parameter definition.
(exemple: -i 5 6 7 -j 5)

3. A "test" class can be associated to a parameter.
--> This test class will apply a validation for each value of the parameter.

If somebody has others ideas...

They are welcome.

Posted by Stephane Clinckart 2004-08-11

Log in to post a comment.

Auth0 Logo