src/Way/Generators/Commands/GeneratorCommand.php
protected function getPathByOptionOrConfig($option, $configName)
    {
        if ($path = $this->option($option)) return $path;

        return Config::get("generators::config.{$configName}");
    }
protected function getPathByOptionOrConfig($option, $configName)
    {
        if ($path = $this->option($option)) return $path;

        return Config::get("generators::config.{$configName}");
    }
protected function getPathByOptionOrConfig ( $ option , $ configName ) { if ( $ path = $ this -> option ( $ option ) ) return $ path ; return Config :: get ( "generators::config.{$configName}" ) ; }
Get a directory path through a command option, or from the configuration.

@param $option
@param $configName
@return string
Get a directory path through a command option or from the configuration .