Smarter command-line processing to allow direct index.php access.