src/Clapp/CommandArgumentFilter.php
public function getParam($name)
    {
        if (!$this->parsed) {
            $this->parseParams();
        } //if

        $longName = strlen($name) === 1 ? $this->definitions->getLongName($name) : $name;
        if (isset($this->params[$longName])) {
            return $this->params[$longName];
        } else {
            if ($this->definitions->allowsValue($longName)) {
                return null;
            } else {
                return false;
            } //if
        } //if

    }
public function getParam($name)
    {
        if (!$this->parsed) {
            $this->parseParams();
        } //if

        $longName = strlen($name) === 1 ? $this->definitions->getLongName($name) : $name;
        if (isset($this->params[$longName])) {
            return $this->params[$longName];
        } else {
            if ($this->definitions->allowsValue($longName)) {
                return null;
            } else {
                return false;
            } //if
        } //if

    }
public function getParam ( $ name ) { if ( ! $ this -> parsed ) { $ this -> parseParams ( ) ; } //if $ longName = strlen ( $ name ) === 1 ? $ this -> definitions -> getLongName ( $ name ) : $ name ; if ( isset ( $ this -> params [ $ longName ] ) ) { return $ this -> params [ $ longName ] ; } else { if ( $ this -> definitions -> allowsValue ( $ longName ) ) { return null ; } else { return false ; } //if } //if }
returns parameter matching provided name

@author Patrick Forget <patforg at webtrendi.com>

@param string name of the paramter to retreive

@return mixed if param the param appears only once the method will
return 1 if the parameter doesn't take a value. The specified value
for that param will returned if it does take value.

If many occurence of the param appear the number of occurences will
be returned for params that do not take values. An array of values
will be returned for the parameters that do take values.

If the parameter is not present null if it takes a value and false if
it's not present and doesn't allow values
returns parameter matching provided name