protected function getCommandConfigValue(InputInterface $input)
    {
        $config = [];
        if (!empty($input->getOption('group'))) {
            $config['group'] = $input->getOption('group');
        }

        if (true === ($input->getOption('group-skip-empty'))) {
            $config['group-skip-empty'] = true;
        }

        return array_merge(
            $config,
            array_filter([
                'group-type' => $input->getOption('group-type'),
                'sort-type' => $input->getOption('sort-type'),
                'sort-direction' => $input->getOption('sort-direction'),
            ], function ($element) {
                return !is_null($element);
            })
        );
    }