@param string $short
@param string $long
@param string $description
@param string $placeholder

@return $this
@throws \Jawira\MiniGetopt\MiniGetoptException
967229
public function addOptional(string $short, string $long, string $description = '', string $placeholder = 'value')
    {
        $this->addOption(self::OPTIONAL, $short, $long, $description, $placeholder);
        return $this;
    }
605046
public function addNoValue(string $short, string $long, string $description = '')
    {
        $this->addOption(self::NO_VALUE, $short, $long, $description, '');
        return $this;
    }
855121
public function setDescription($description)
	{
		$description = strip_tags($description);

		if (strlen($description) > $this->maxDescriptionLength) {
			$description = substr($description, 0, $this->maxDescriptionLength);
		}

		$this->description = $description;
	}
510834
public function withDescription(string $description): self
    {
        $metadata = clone $this;
        $metadata->description = $description;

        return $metadata;
    }
231356
public function setDescription($description = null)
    {
        if ($this->getMajorProtocolVersion() == 2) {
            require_once 'Zend/Gdata/App/VersionException.php';
            throw new Zend_Gdata_App_VersionException('The setDescription ' .
                ' method is only supported in version 1 of the YouTube ' .
                'API.');
        } else {
            $this->_description = $description;
            return $this;
        }
    }
1369852
public function setShort($short)
    {
        $short = (string) $short;
        $this->short = function_exists('mb_substr')
            ? mb_substr($short, 0, 1)
            : substr($short, 0, 1)
        ;
        return $this;
    }
403980
public function addOpt(
        string $name,
        string $shortcut = null,
        int $mode = null,
        string $description = '',
        $default = null
    ): self {
        return $this->addOption($name, $shortcut, $mode, $description, $default);
    }
82721
public function setDescription($description)
    {
        $stripURLRegex = "/((?<!=\")(http|ftp)+(s)?:\/\/[^<>()\s]+)/i";
        $description = preg_replace($stripURLRegex, '', $description);
        $description = strip_tags($description);
        $description = htmlentities($description);
        $description = str_replace(array('#', '@'), '', $description);
        $description = AnService::get('com:base.template.helper.text')->truncate($description, array('length' => 160));
        $description = trim($description);

        $this->_description = $description;
	}
1061191
public function addShortCut( $short, $long )
	{
		if( !isset( $this->shortcuts[$short] ) )
			$this->shortcuts[$short]	= $long;
		else
			trigger_error( "Shortcut '".$short."' is already set", E_USER_ERROR );
	}
1209198
public function setDefaultDescription($description = null)
    {
        if (! $this->description) {
            $description = $description ?: config("fields.descriptions.{$this->key}", ucfirst($this->key));
            foreach ((array) $description as $locale => $translation) {
                $locale = is_string($locale) ? $locale : $this->getDefaultLocale();
                $this->setTranslation('description', $translation, $locale);
            }
        }
    }
64720
public function create(Description $description)
    {
        return new LocationEntity(
            $description->getOptionalProperty('address'),
            $this->getCoordinates($description),
            $description->getOptionalProperty('postalCode'),
            $description->getOptionalProperty('city'),
            $description->getOptionalProperty('state'),
            $description->getOptionalProperty('country')
        );
    }
927877
public function setDescription($description)
    {
        $this->content = null;
        $this->parsedDescription = null;
        $this->description = trim($description);

        return $this;
    }
264246
@Override
    public CommandLineParser addOption(String name, String description) {
        int length = name.length();
        if (length > longestOptionNameLength) {
            longestOptionNameLength = length;
        }
        declaredOptions.put(name, new Option(name, description));
        return this;
    }
499259
private function getCoordinates(Description $description)
    {
        $latitude  = $description->getOptionalProperty('lat');
        $longitude = $description->getOptionalProperty('lng');

        if ($latitude === null || $longitude === null) {
            return null;
        }

        return new Coordinates($latitude, $longitude);
    }
1313404
public function withOption($name, $description, $default = '', array $choices = [])
    {
        $this->choices[$name] = $choices;

        return $this->addOption($name, null, InputOption::VALUE_OPTIONAL, $description, $default);
    }
521483
public function addChoice($value, $description)
    {
        //====================================================================//
        // Safety Checks ==> Verify a new Field Exists
        if (empty($this->new)) {
            Splash::log()->err("ErrFieldsNoNew");
        } else {
            //====================================================================//
            // Update New Field structure
            $this->new->choices[] = array(
                "key" => $value,
                "value" => Splash::trans(trim($description))
            );
        }

        return $this;
    }
1371250
protected function addOption(string $type, string $short, string $long, string $description, string $placeholder)
    {
        $this->validateShortAndLong($short, $long);

        $this->options[] = compact('type', 'short', 'long', 'description', 'placeholder');
        return $this;
    }