note 67210 deleted from function.getopt by philip
| From: | philip@php.net | Date: | Thu, 07 May 2009 22:34:26 +0000 |
| Subject: | note 67210 deleted from function.getopt by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154334@lists.php.net to get a copy of this message | ||
Note Submitter: fertugrul [ at ] yahoo [dot] com
----
I have written another function to parse command line variables. The source can be found at http://afe.cc/getopt.txt and the include file generic.h is at http://afe.cc/generic.h .
What you need to do is to put required variables to an array in a specific order and call
parse_args. All variables that must be read from command line are set automatically. I've tried
to imitate the output of GNU's getopt library.
Hope it helps.
AFE