public function takeAction($action, $dest, $opt, $value, $values, $parser)
 {
     if ($action == "extend") {
         $lvalue = explode(',', $value);
         $values->{$dest} = array_merge($values->ensureValue($dest, array()), $lvalue);
     } else {
         parent::takeAction($action, $dest, $opt, $parser, $value, $values);
     }
 }
Exemple #2
0
 public function testParseNumOk()
 {
     $this->assertSame(0, Horde_Argv_Option::parseNumber('0'));
     $this->assertSame(16, Horde_Argv_Option::parseNumber('0x10'));
     $this->assertSame(10, Horde_Argv_Option::parseNumber('0XA'));
     $this->assertSame(8, Horde_Argv_Option::parseNumber('010'));
     $this->assertSame(3, Horde_Argv_Option::parseNumber('0b11'));
     $this->assertSame(0, Horde_Argv_Option::parseNumber('0b'));
 }