/**
* Get progress bar instance
*
* @param integer $total
*
* @return ProgressBar
*/
public function getProgress($total = null)
{
if (!$this->progress || $this->progress->getMaxSteps() === $this->progress->getProgress()) {
$this->progress = new ProgressBar($this->output, $total);
}
return $this->progress;
}