class Getopt (View source)

Command-line options parsing class.

Methods

static 
getopt(array $args, $short_options, $long_options = null)

No description

static 
parseShortOption($arg, $short_options, $opts, $args)

No description

static 
parseLongOption($arg, $long_options, $opts, $args)

No description

Details

static getopt(array $args, $short_options, $long_options = null)

Parameters

array $args
$short_options
$long_options

static protected parseShortOption($arg, $short_options, $opts, $args)

Parameters

$arg
$short_options
$opts
$args

static protected parseLongOption($arg, $long_options, $opts, $args)

Parameters

$arg
$long_options
$opts
$args