public function addOption($description, $option = null)
    {
        if ($option) {
            $this->options[$option] = $description;
        } else {
            $this->options[] = $description;
        }

        return $this;
    }
public function addOption($description, $option = null)
    {
        if ($option) {
            $this->options[$option] = $description;
        } else {
            $this->options[] = $description;
        }

        return $this;
    }
public function addOption ( $ description , $ option = null ) { if ( $ option ) { $ this -> options [ $ option ] = $ description ; } else { $ this -> options [ ] = $ description ; } return $ this ; }
Add an option.

@param   string $description Option description.
@param   string $option      Option key, if this param is NULL, will use int as option key.

@return  ValidatePrompter  Return self to support chaining.

@since   2.0
Add an option .