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

        if (strlen($name) == 1) {
            return isset($this->shortNames[$name]);
        } else {
            return isset($this->longNames[$name]);
        } //if
    }
public function paramExists($name)
    {
        if (!$this->isParsed) {
            $this->parseDefinitions();
        } //if

        if (strlen($name) == 1) {
            return isset($this->shortNames[$name]);
        } else {
            return isset($this->longNames[$name]);
        } //if
    }
public function paramExists ( $ name ) { if ( ! $ this -> isParsed ) { $ this -> parseDefinitions ( ) ; } //if if ( strlen ( $ name ) == 1 ) { return isset ( $ this -> shortNames [ $ name ] ) ; } else { return isset ( $ this -> longNames [ $ name ] ) ; } //if }
checks if parameter is allowed

@author Patrick Forget <patforg at webtrendi.com>

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

@return boolean true if definition exisits, false otherwise
checks if parameter is allowed