get long-opt value(bool)
@param string $name
@param bool   $default
@return bool
9657
public function lBoolOpt(string $name, $default = false): bool
    {
        $val = $this->lOpt($name);

        return \is_bool($val) ? $val : (bool)$default;
    }
954940
public static long getLong(String name, long defaultVal){
        if(getConfiguration().containsKey(name)){
            return getConfiguration().getLong(name);
        } else {
            return defaultVal;
        }
    }
219009
protected function getOption($name, $default = null)
    {
        $matchedOption = null;
        foreach ($this->actions[$this->actionName]->getOptions() as $option) {
            if ($option->matchParam($name)) {
                $matchedOption = $option;
            }
        }
        $value = $matchedOption->getValue($this->args, $default);

        return $value;
    }
803077
public function get(string $name, $default = null)
    {
        return isset($this->options[$name]) ? $this->options[$name] : $default;
    }
869281
public static function get($name, $default = null)
    {
        $result = getenv(ENV_PREFIX . strtoupper(str_replace('.', '_', $name)));

        if (false !== $result) {
            if ('false' === $result) {
                $result = false;
            } elseif ('true' === $result) {
                $result = true;
            }

            return $result;
        }

        return $default;
    }
1039291
public function getBoolValue($name):?bool
    {
        $value = $this->offsetGet($name);
        if (is_null($value)) {
            return null;
        }

        return (boolean)$value;
    }
70825
public function get($name, $default = false)
    {
        $this->readTimes++;

        $value = $this->handler->get($this->getCacheKey($name));

        if (is_null($value) || false === $value) {
            return $default;
        }

        return $this->unserialize($value);
    }
76995
public long getLong(String name, long defaultValue) {
        try {
            String value = getString(name, null);
            if (!StringUtils.isNullOrEmpty(value)) {
                return Long.parseLong(value.trim());
            }
        } catch (NumberFormatException e) {
            log.warn("Failed to parse long for " + name + USING_DEFAULT_OF
                + defaultValue);
        }

        return defaultValue;
    }
295624
public static function get($name, $default = null, $options = self::VAR_STRING)
    {
        $envKey = trim($name);

        $value = getenv($envKey);
        if ($value === false) {
            if (isset($_ENV[$envKey])) {
                return self::convert($_ENV[$envKey], $options);
            }
            return $default;
        }

        return self::convert($value, $options);
    }
665229
public function get($name, $default = false)
    {
        $this->readTimes++;

        $result = $this->handler->get($this->getCacheKey($name));

        return false !== $result ? $this->unserialize($result) : $default;
    }
833493
public static Long getLong(String name, Long defaultValue) {
		return Long.getLong(name, defaultValue);
	}
1256634
public function getValue($name, $default = null)
    {
        return isset($this->data[$name]) ? $this->data[$name] : $default;
    }
399592
public Long optLong(String name, Long fallback) {
        return optLong(name, fallback, true);
    }
505363
public function getBooleanParam($name, $default = null, $optional = false)
    {
        $value = $this->getParam($name, $default, $optional);
        if ($value !== null) {
            if (!is_bool($value) && !preg_match('/^(0|1|true|false)$/', $value)) {
                throw new InvalidParameterException("Parameter '{$name}' is invalid");
            }
            $value = $value === true || $value === '1' || $value === 'true';
        }
        return $value;
    }
1008892
public function getOption($name, $default = null)
    {
        $config = $this->getConfig();

        return array_key_exists($name, $config) ? $config[$name] : $default;
    }
748186
public final function getOption( string $name, $defaultValue = false )
   {

      if ( ! $this->hasOption( $name ) )
      {
         return $defaultValue;
      }

      return $this->_options[ $name ];

   }
328979
private static function getOption(InputInterface $input, string $name, bool $default = false): bool
    {
        return $input->hasOption($name) ? (bool) $input->getOption($name) : $default;
    }