src/Rocketeer/Traits/HasLocatorTrait.php
public function getOption($option, $loose = false)
    {
        // Verbosity levels
        if ($this->hasCommand() && $option === 'verbose') {
            return $this->command->getVerbosity() > OutputInterface::VERBOSITY_NORMAL;
        }

        // Gather options
        $options = isset($this->options) ? $this->options : [];

        // If we have a command and a matching option, get it
        if ($this->hasCommand()) {
            if (!$loose) {
                return $this->command->option($option);
            }

            $options = array_merge($options, (array) $this->command->option());
        }

        return Arr::get($options, $option);
    }
public function getOption($option, $loose = false)
    {
        // Verbosity levels
        if ($this->hasCommand() && $option === 'verbose') {
            return $this->command->getVerbosity() > OutputInterface::VERBOSITY_NORMAL;
        }

        // Gather options
        $options = isset($this->options) ? $this->options : [];

        // If we have a command and a matching option, get it
        if ($this->hasCommand()) {
            if (!$loose) {
                return $this->command->option($option);
            }

            $options = array_merge($options, (array) $this->command->option());
        }

        return Arr::get($options, $option);
    }
public function getOption ( $ option , $ loose = false ) { // Verbosity levels if ( $ this -> hasCommand ( ) && $ option === 'verbose' ) { return $ this -> command -> getVerbosity ( ) > OutputInterface :: VERBOSITY_NORMAL ; } // Gather options $ options = isset ( $ this -> options ) ? $ this -> options : [ ] ; // If we have a command and a matching option, get it if ( $ this -> hasCommand ( ) ) { if ( ! $ loose ) { return $ this -> command -> option ( $ option ) ; } $ options = array_merge ( $ options , ( array ) $ this -> command -> option ( ) ) ; } return Arr :: get ( $ options , $ option ) ; }
Get an option from the Command.

@param string $option
@param bool   $loose

@return string
Get an option from the Command .