note 67210 added to function.getopt

From: Date: Mon, 05 Jun 2006 21:55:04 +0000
Subject: note 67210 added to function.getopt
Groups: php.notes 
Request: Send a blank email to php-notes+get-113269@lists.php.net to get a copy of this message
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 ---- Server IP: 139.179.10.17 Probable Submitter: 212.156.230.146 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.getopt.php Edit -- http://master.php.net/note/edit/67210 Del: integrated -- http://master.php.net/note/delete/67210/integrated Del: useless -- http://master.php.net/note/delete/67210/useless Del: bad code -- http://master.php.net/note/delete/67210/bad+code Del: spam -- http://master.php.net/note/delete/67210/spam Del: non-english -- http://master.php.net/note/delete/67210/non-english Del: in docs -- http://master.php.net/note/delete/67210/in+docs Del: other reasons-- http://master.php.net/note/delete/67210 Reject -- http://master.php.net/note/reject/67210 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#113269) next »