GrumPHP\Console\Command\Git\InitCommand::useExoticConfigFile PHP Method

useExoticConfigFile() protected method

This method will tell you which exotic configuration file should be used.
protected useExoticConfigFile ( ) : null | string
return null | string
    protected function useExoticConfigFile()
    {
        try {
            $configPath = $this->paths()->getAbsolutePath($this->input->getOption('config'));
            if ($configPath != $this->paths()->getDefaultConfigPath()) {
                return $this->paths()->getRelativeProjectPath($configPath);
            }
        } catch (FileNotFoundException $e) {
            // no config file should be set.
        }
        return null;
    }