public function addOptionIfNotEmpty(string $option, $check, bool $asValue = true, string $glue = '=') : Executable
    {
        if (!empty($check)) {
            if ($asValue) {
                $this->addOption($option, $check, $glue);
            } else {
                $this->addOption($option);
            }
        }
        return $this;
    }
public function addOptionIfNotEmpty(string $option, $check, bool $asValue = true, string $glue = '=') : Executable
    {
        if (!empty($check)) {
            if ($asValue) {
                $this->addOption($option, $check, $glue);
            } else {
                $this->addOption($option);
            }
        }
        return $this;
    }
public function addOptionIfNotEmpty ( string $ option , $ check , bool $ asValue = true , string $ glue = '=' ) : Executable { if ( ! empty ( $ check ) ) { if ( $ asValue ) { $ this -> addOption ( $ option , $ check , $ glue ) ; } else { $ this -> addOption ( $ option ) ; } } return $ this ; }
Adds an option to a command if it is not empty.

@param  string $option
@param  mixed  $check
@param  bool   $asValue
@param  string $glue
@return \SebastianFeldmann\Cli\Command\Executable
Adds an option to a command if it is not empty .