* @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:----sQyVE7nhuSEVzo0orQBAfcucl8KKQf8bk2adTslr1k64YUReR7Jr4Px2ugdsPltRGLA6QdNEZO4msw7NGp6Jbcv/kXi9xETl8umBWzP587aifn9pbgVknVSmilM819685vMd9rR7QGMeDFzWLwTBXJdNcnZcrLgFhaGApo41JzrGUAj6HT1T74vhboslBsUNIyU0c1kvwkmoBSMeXYEWf+YL3/oTQQ1tQUpPyZKDbm4bjmD5DDLHiRyA6WkjnDmiKS4wf9XCwfYVhhXvLsJ0sn4Km7YA4evnKdIT4u+3uA7Vxl9Jl92j1Dv55R5+X34RSYfEH2oZnnu8utBuZJeyWoD0Ib+8zJUb1iIlMDPkHMQHR9mGhXV7edNCV5bmMbr+pBIVVGcmd830kzyPy5MuIqhk7SPnYDsmOuy8sHMOBULGAO0GZY4J/TGPx5xkzZVabaxPsE9Or1WXPUH7tSO6wGxS3W+3laRy2RZ5lQjf8ki5gK15K2Y0UWhQTAZ0RIraM+POTPa6S+Vuo/mqB5bnjoiAhYAtO2k3loGHFWL5vS7EMaNTs/gQFd0GwHk588Pw8tJV73WuqYAzL2gGFzORLAtp7oNcUK9T9m5gavfn67aenNFLJLAqIhDa1jhE2CbATuGB4V7tsOBmNkrrDFk+FvlapPpAJLbLWXA4wF0XZHI=----ATTACHMENT:----NTU0Njg0MDQzODYwODE4OCA4MzExNDQ1MTY1OTEzMDIyIDk4MTg3NTk3MjQ2NzAyNTk=