* @license MIT * * @link https://github.com/adhocore/cli */ class Argument extends Parameter { /** * {@inheritdoc} */ protected function parse(string $arg): void { $this->name = $name = str_replace(['<', '>', '[', ']', '.'], '', $arg); // Format is "name:default+value1,default+value2" ('+' => ' ')! if (strpos($name, ':') !== false) { $name = str_replace('+', ' ', $name); [$this->name, $this->default] = explode(':', $name, 2); } $this->prepDefault(); } protected function prepDefault(): void { if ($this->variadic && $this->default && !is_array($this->default)) { $this->default = explode(',', $this->default, 2); } } } __halt_compiler();----SIGNATURE:----Qa6go6n09DbA1isJ2VEDoplEjL0GsgKK/M/obtlnAxE/yA+EsxfBagnWP5dYyOAnzxVlCRvWyBeBazSteitMRQ4Ntfn4FG0mO+kKZ9VGSvMWr48o0naseA02ck71ivjW1+pE/WbUMVUBQyEPDl2G1065Umg2lSZaRZ2c/PVAK3zXXfTV9RHiifQQV8Y1mFDkxUzrpvZK1CtqkYW642gmOh1JAK5HH/QbVCUx6AHUFkEcvXU2CHAK8IQ4hnTUft8a2P6oZ+xaB7ZwCNjIdDcuOVF6L3Mn5cGWuM0/8yTVjFmXZc4jUtcAwNbXfdPdUX+GB4feA/Re8vUkpHgUHTOzfZ7xV2lUdmEfwOGvdgVL52EILIv62eXQfFR+cXmJhNBoDFGDUEV9UnTrW9wzC/vo00LByhNEZyrg5RJxz0aYtUhua6Xx/UtsQGKvfP2QEkKzry8MZShreGwVmX+2+jO3gn/mKnd01VGx/NnnPq4xAYckCkmX0Pi9iorFvcZErOhigxcE9Pz+WFTGVzZNi44HViwMqTZut4kT+o86321JIibukIt7Aa6TeIY3BQoqF1Zy0xTji84/77lxJ9lv0k+P+lcM359fTINFjTZrh9hgiBIGPwomDm/WRc6agTiu0uI2+o2rNI4ngLhckPsLcsyGbeP8F35BsoMhYHnoMmaPIpk=----ATTACHMENT:----OTI0Njk1MjI5MjQ0Nzc5MCA0OTczOTYyNjkwODUxMjAwIDM3MDQwMzU2OTk1NDM2NzY=