$options[] = 'quiet'; break; case '--pretend': case '-p': $options[] = 'pretend'; break; case '--recursive': case '-r': $options[] = 'recursive'; break; default: $exploded = explode('=', $arg); if (count($exploded) == 2) { switch ($exploded[0]) { case '--compilation_level': case '-l': $option['compilation_level'] = $exploded[1]; break; default: help(); } } else { if ($is_option || $path) { help(); } $path = $arg; } } } compile::it($path, $options);