private function getUsableConfig(InputInterface $input)
{
$configLoader = new ConfigLoader();
$configFinder = new ConfigFinder();
/**
* This section is just for finding the right values to work with in
* this execution.
*
* $options array will have, after this block, all these values
*/
$configPath = rtrim($input->getOption('config'), DIRECTORY_SEPARATOR);
return $configLoader->loadConfigValues(self::COMMAND_NAME, $configFinder->findConfigFile($configPath), ['group' => $input->getOption('group'), 'group-type' => $input->getOption('group-type'), 'group-skip-empty' => $input->getOption('group-skip-empty'), 'sort-type' => $input->getOption('sort-type'), 'sort-direction' => $input->getOption('sort-direction')], ['group' => ['_main'], 'group-type' => UseSorter::GROUP_TYPE_EACH, 'group-skip-empty' => false, 'sort-type' => UseSorter::SORT_TYPE_ALPHABETIC, 'sort-direction' => UseSorter::SORT_DIRECTION_ASC]);
}