Skip to content

Instantly share code, notes, and snippets.

View d9beuD's full-sized avatar

Vincent BATHELIER d9beuD

View GitHub Profile
@jadb
jadb / cli.args.php
Created October 25, 2012 01:25
Parse PHP CLI arguments
http://pwfisher.com/nucleus/index.php?itemid=45
This command line option parser supports any combination of three types of options (switches, flags and arguments) and returns a simple array.
<?php
/**
* CommandLine class
*
* @package Framework
*/
/**