diff --git a/src/Command/ChopCommand.php b/src/Command/ChopCommand.php index eca2241..4293da7 100644 --- a/src/Command/ChopCommand.php +++ b/src/Command/ChopCommand.php @@ -87,7 +87,7 @@ protected function execute(InputInterface $input, OutputInterface $output) $config = (new Config())->parse($input->getOption('config')); $group = $input->getOption('group') ?: $config->get(Config::CONFIG_DEFAULT_GROUP); - $tablePopulator = $input->getOption(static::OPTION_CONFIG) + $tablePopulator = $input->getOption(static::OPTION_ALL) ? new DbTablePopulator() : new FileTablePopulator(new Local('/')); $schemaParser = new SchemaParser($tablePopulator, $config, $group);