* @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:----XPXDPQmvgwtzFYEZObFrSD2kWHPHJhGfCRhU5UG5ms83eUgJNpTl93TaDymXWBfwrqlPiGL11TRf0MwGDrXqrj/x50sxzTli/0WHzSroLAHh3317ZeADoZzo2pksy+13sM79/K/+lESqFRjLmWHs3KIk+v1vBjoZ5JFJ5bEejVgQRiSyvNQ/VsSkHzO8mX2t8DsNnMal3+tfBbyVd87UcI4QFXTJ8uGW1efzRBWBI145O4jQNtGdBp0LkPa4DFoHiawIvdtnntukT+P/SeRHhVCnUMFF/5LPfL+/Rwd0Dni04dvZA1uiVy6XwrjubKpw3SfST6Ceqx6ovy/hvRfsOppzUR1g3LPGwuGHkSHq3JMIKysLpM6iDKz6q8C0i+pG6HaaY/Fksst3S+yL8PHTxfOssr01GkLr27YQ2YXunOu8NkZuPKNGVLtXpRNV8kIaTAK6fit4AdDxCYblP4UeWgAqjXId4q5O3WfxRn3sz0+fn2XVsrgCg5H/qvzdYxJWzRcJcNTnIYDEk7cNdvyw7XfrOAqAXGHUcbpC0fjYRylzeaYF9Wvrx1485e+XOIS3THZvEqRf4DvoCY8vFTCcz3eFEtQstDtcIhFcl1BnHs+rkZnVa/b45f/ymrTrB/e7QiOYyygYqXnVLOyLoF21ruAFt0mcwWUvKxzYUSnrbyQ=----ATTACHMENT:----NDM0NTM5NzUzMTI1NDA1OCA3OTAxNzU2MjAzMTAzNjU5IDcwNDM3OTIxMzM5OTAyNQ==