/**
* Initialise the command.
*
* @return void
*
* @since 4.0.0
*/
protected function configure() : void
{
$this->addArgument('purge', InputArgument::OPTIONAL, 'Purge the index and rebuilds');
$this->addOption('minproctime', null, InputOption::VALUE_REQUIRED, 'Minimum processing time in seconds, in order to apply a pause', 1);
$this->addOption('pause', null, InputOption::VALUE_REQUIRED, 'Pausing type or defined pause time in seconds', 'division');
$this->addOption('divisor', null, InputOption::VALUE_REQUIRED, 'The divisor of the division: batch-processing time / divisor', 5);
$help = <<<'EOF'
The <info>%command.name%</info> Purges and rebuilds the index (search filters are preserved).
<info>php %command.full_name%</info>
EOF;
$this->setDescription('Purges and rebuild the index');
$this->setHelp($help);
}