Zend\Console\Getopt::__construct
The constructor takes one to three parameters.
The first parameter is $rules, which may be a string for gnu-style format, or a structured array for Zend-style format. The second parameter is $argv, and it is optional. If not specified, $argv is inferred from the global argv. The third parameter is an array of configuration parameters to control the behavior of this instance of Getopt; it is optional.
Signature
public function __construct(array
$rules,
[array
$argv = null,
array
$getoptConfig] )
Parameters
$rules
— array$argv
— array$getoptConfig
— array