optparse
optparse copied to clipboard
Code is not E_STRICT clean
Could you please supply the correct parameters in lib / CHH / Optparse.php
eg. insert defaults before line 54ff like:
isset($options["alias"]) OR $options["alias"] = array(); isset($options["default"]) OR $options["default"] = NULL; isset($options["has_value"]) OR $options["has_value"] = FALSE; isset($options["help"]) OR $options["help"] = "";
(and remove the not working "@" since PHP 5.4 with E_STRICT by default)
$this->aliases = array_merge(array("--$name"), (array) $options["alias"]); $this->defaultValue = $options["default"]; $this->hasValue = (bool) $options["has_value"]; $this->help = $options["help"];
Thank you very much... Sincerely yours