Tweak: use hasOption() in PopulateCommand instead of checking for booleans
This commit is contained in:
parent
20b16d4f8c
commit
63cca11a0b
|
@ -67,7 +67,7 @@ class PopulateCommand extends ContainerAwareCommand
|
||||||
{
|
{
|
||||||
$index = $input->getOption('index');
|
$index = $input->getOption('index');
|
||||||
$type = $input->getOption('type');
|
$type = $input->getOption('type');
|
||||||
$reset = $input->getOption('no-reset') ? false : true;
|
$reset = $input->hasOption('no-reset');
|
||||||
$options = $input->getOptions();
|
$options = $input->getOptions();
|
||||||
|
|
||||||
$options['ignore-errors'] = $input->hasOption('ignore-errors');
|
$options['ignore-errors'] = $input->hasOption('ignore-errors');
|
||||||
|
|
Loading…
Reference in a new issue