Fixed issues in #426
This commit is contained in:
parent
d03d494d30
commit
41bf07ec59
3 changed files with 9 additions and 5 deletions
|
|
@ -45,7 +45,7 @@ class PopulateCommand extends ContainerAwareCommand
|
|||
->addOption('offset', null, InputOption::VALUE_REQUIRED, 'Start indexing at offset', 0)
|
||||
->addOption('sleep', null, InputOption::VALUE_REQUIRED, 'Sleep time between persisting iterations (microseconds)', 0)
|
||||
->addOption('batch-size', null, InputOption::VALUE_REQUIRED, 'Index packet size (overrides provider config option)')
|
||||
->addOption('no-stop-on-error', null, InputOption::VALUE_NONE, 'Do not stop on errors')
|
||||
->addOption('ignore-errors', null, InputOption::VALUE_NONE, 'Do not stop on errors')
|
||||
->setDescription('Populates search indexes from providers')
|
||||
;
|
||||
}
|
||||
|
|
@ -70,6 +70,8 @@ class PopulateCommand extends ContainerAwareCommand
|
|||
$reset = $input->getOption('no-reset') ? false : true;
|
||||
$options = $input->getOptions();
|
||||
|
||||
$options['ignore-errors'] = $input->hasOption('ignore-errors');
|
||||
|
||||
if ($input->isInteractive() && $reset && $input->getOption('offset')) {
|
||||
/** @var DialogHelper $dialog */
|
||||
$dialog = $this->getHelperSet()->get('dialog');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue