diff --git a/src/MDOutputHandler.php b/src/MDOutputHandler.php index 264ab5a..235c7a0 100644 --- a/src/MDOutputHandler.php +++ b/src/MDOutputHandler.php @@ -23,6 +23,8 @@ final class MDOutputHandler { private bool $_file_logging = false; /** @var float */ private float $_startTime; + /** @var boolean */ + public bool $show_operation_number = true; /** * Function human_filesize translates byte-level filesizes to human readable ones. @@ -135,7 +137,7 @@ final class MDOutputHandler { if (($this->_verbosity > 0 && \in_array($statusCode, [MDConsole::STATUS_UPDATE, MDConsole::STATUS_DELETION, MDConsole::STATUS_ERROR], true)) || $this->_verbosity === 2) echo $message; - if ($this->_counter % 250 === 0) { + if ($this->show_operation_number === true && $this->_counter % 250 === 0) { echo '―――> ' . \sprintf("%1$07d", $this->_counter) . " operations processed" . PHP_EOL; echo str_replace("_", "―", sprintf("%'_80s", "_")) . PHP_EOL; }