/**
* run the command
*
* @param string $mode name of the mode
*
* @since 3.0.0
*
* @return string
*/
public function run($mode = null)
{
$parser = new Parser($this->_request);
$parser->init($mode);
/* run command */
$argumentKey = $parser->getArgument(1);
if ($argumentKey === 'clear') {
return $this->_clear($parser->getOption());
}
if ($argumentKey === 'clear-invalid') {
return $this->_clearInvalid($parser->getOption());
}
return $this->getHelp();
}