protected function collectTasks()
{
$tasks = array();
$args = $this->opts->args();
foreach ($args as $arg) {
if (preg_match('/^(\\w+)=(.*)$/', $arg, $matches)) {
$this->application->env[$matches[1]] = trim($matches[2], '"');
continue;
}
$tasks[] = $arg;
}
if (empty($tasks)) {
$tasks += array('default');
}
return $tasks;
}