public function _parse(array $arguments)
{
// strips away the program name
array_shift($arguments);
if (count($arguments) < 2) {
$arguments = ['help'];
}
switch ($arguments[0]) {
case 'crawl':
$this->_crawl($arguments[1]);
break;
case 'extract':
$this->_extract($arguments[1]);
break;
case 'help':
default:
$this->_help();
break;
}
}