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

        if (isset($this->longNames[$name])) {
            return $this->longNames[$name]['shortName'];
        } else {
            return null;
        } //if
    }
public function getShortName($name)
    {
        if (!$this->isParsed) {
            $this->parseDefinitions();
        } //if

        if (isset($this->longNames[$name])) {
            return $this->longNames[$name]['shortName'];
        } else {
            return null;
        } //if
    }
public function getShortName ( $ name ) { if ( ! $ this -> isParsed ) { $ this -> parseDefinitions ( ) ; } //if if ( isset ( $ this -> longNames [ $ name ] ) ) { return $ this -> longNames [ $ name ] [ 'shortName' ] ; } else { return null ; } //if }
retreive short name of a parameter using its long name

@author Patrick Forget <patforg at webtrendi.com>

@param string $name long name of the parameter to check

@return string character of the short name or null if it doesn't exist
retreive short name of a parameter using its long name