private function parseShortArgument($command, $arguments, &$argPointer, &$output)
    {
        $argument = $arguments[$argPointer];
        $option = $this->retrieveOptionFromCache($command, substr($argument, 1, 1));
        $value = true;

        if (isset($option['type'])) {
            if (substr($argument, 2) != "") {
                $value = substr($argument, 2);
            } else {
                $value = $this->getNextValueOrFail($arguments, $argPointer, $option['name']);
            }
        }

        $this->assignValue($option, $output, $option['name'], $value);
    }
private function parseShortArgument($command, $arguments, &$argPointer, &$output)
    {
        $argument = $arguments[$argPointer];
        $option = $this->retrieveOptionFromCache($command, substr($argument, 1, 1));
        $value = true;

        if (isset($option['type'])) {
            if (substr($argument, 2) != "") {
                $value = substr($argument, 2);
            } else {
                $value = $this->getNextValueOrFail($arguments, $argPointer, $option['name']);
            }
        }

        $this->assignValue($option, $output, $option['name'], $value);
    }
private function parseShortArgument ( $ command , $ arguments , & $ argPointer , & $ output ) { $ argument = $ arguments [ $ argPointer ] ; $ option = $ this -> retrieveOptionFromCache ( $ command , substr ( $ argument , 1 , 1 ) ) ; $ value = true ; if ( isset ( $ option [ 'type' ] ) ) { if ( substr ( $ argument , 2 ) != "" ) { $ value = substr ( $ argument , 2 ) ; } else { $ value = $ this -> getNextValueOrFail ( $ arguments , $ argPointer , $ option [ 'name' ] ) ; } } $ this -> assignValue ( $ option , $ output , $ option [ 'name' ] , $ value ) ; }
Parse a short argument that is prefixed with a single dash '-'

@param $command
@param $arguments
@param $argPointer
@throws InvalidValueException
@throws InvalidArgumentException
Parse a short argument that is prefixed with a single dash -