public function compile($spec) {
		foreach ($spec as $arg) {
			if (isset($arg[0]) && is_numeric($arg[0])) {
				$arg[3] &= ~0xf00;
				$this->spec["--".$arg[0]] = $arg;
			} elseif (isset($arg[0])) {
				$this->spec["-".$arg[0]] = $arg;
				$this->spec["--".$arg[1]] = $arg;
			} else {
				$this->spec["--".$arg[1]] = $arg;
			}
			$this->orig[] = $arg;
		}
		return $this;
	}
public function compile($spec) {
		foreach ($spec as $arg) {
			if (isset($arg[0]) && is_numeric($arg[0])) {
				$arg[3] &= ~0xf00;
				$this->spec["--".$arg[0]] = $arg;
			} elseif (isset($arg[0])) {
				$this->spec["-".$arg[0]] = $arg;
				$this->spec["--".$arg[1]] = $arg;
			} else {
				$this->spec["--".$arg[1]] = $arg;
			}
			$this->orig[] = $arg;
		}
		return $this;
	}
public function compile ( $ spec ) { foreach ( $ spec as $ arg ) { if ( isset ( $ arg [ 0 ] ) && is_numeric ( $ arg [ 0 ] ) ) { $ arg [ 3 ] &= ~ 0xf00 ; $ this -> spec [ "--" . $ arg [ 0 ] ] = $ arg ; } elseif ( isset ( $ arg [ 0 ] ) ) { $ this -> spec [ "-" . $ arg [ 0 ] ] = $ arg ; $ this -> spec [ "--" . $ arg [ 1 ] ] = $ arg ; } else { $ this -> spec [ "--" . $ arg [ 1 ] ] = $ arg ; } $ this -> orig [ ] = $ arg ; } return $ this ; }
Compile the original spec
@param array|Traversable $spec
@return pharext\Cli\Args self
Compile the original spec