src/Clapp/CommandLineArgumentDefinition.php
public function allowsValue($name)
    {
        if (!$this->isParsed) {
            $this->parseDefinitions();
        } //if

        $longName = (strlen($name) == 1 ? ( isset($this->shortNames[$name]) ? $this->shortNames[$name] : '') : $name);

        if (isset($this->longNames[$longName])) {
            return $this->longNames[$longName]['parameterType'] !== false ? true : false;
        } else {
            return false;
        } //if
    }
public function allowsValue($name)
    {
        if (!$this->isParsed) {
            $this->parseDefinitions();
        } //if

        $longName = (strlen($name) == 1 ? ( isset($this->shortNames[$name]) ? $this->shortNames[$name] : '') : $name);

        if (isset($this->longNames[$longName])) {
            return $this->longNames[$longName]['parameterType'] !== false ? true : false;
        } else {
            return false;
        } //if
    }
public function allowsValue ( $ name ) { if ( ! $ this -> isParsed ) { $ this -> parseDefinitions ( ) ; } //if $ longName = ( strlen ( $ name ) == 1 ? ( isset ( $ this -> shortNames [ $ name ] ) ? $ this -> shortNames [ $ name ] : '' ) : $ name ) ; if ( isset ( $ this -> longNames [ $ longName ] ) ) { return $ this -> longNames [ $ longName ] [ 'parameterType' ] !== false ? true : false ; } else { return false ; } //if }
checks if parameter allows a value if so what type

@author Patrick Forget <patforg at webtrendi.com>

@param string $name either short or long name of the parameter to check

@return boolean|string false doesn't allow value, The value "string" or "integer" depending which type it allows
checks if parameter allows a value if so what type