? .svn
? Makefile
? acquia.patch
? code-coverage.db
? continuous-integration.mak
? coverage.CoverageTemplates_c
? fix-default-and-testing-profiles-node-set-defaults.patch
? profiles
? uploads
? sites/files
? sites/default/files
? sites/default/settings.php
Index: scripts/drupal.sh
===================================================================
RCS file: /cvs/drupal/drupal/scripts/drupal.sh,v
retrieving revision 1.6
diff -u -r1.6 drupal.sh
--- scripts/drupal.sh	12 Oct 2008 04:30:09 -0000	1.6
+++ scripts/drupal.sh	16 Oct 2008 18:34:53 -0000
@@ -70,6 +70,8 @@
 // toggle verbose mode
 if (in_array('--verbose', $_SERVER['argv'])) {
   $_verbose_mode = true;
+  // remove verbose param from any position
+  $_SERVER['argv'] = array_diff($_SERVER['argv'], array('--verbose'));
 }
 else {
   $_verbose_mode = false;
@@ -95,7 +97,7 @@
     default:
       if (substr($param, 0, 2) == '--') {
         // ignore unknown options
-        break;
+        break 2;
       }
       else {
         // parse the URI
@@ -136,6 +138,9 @@
 }
 
 if (file_exists($cmd)) {
+   // If $cmd wants to act like a command-line program, let it.
+   $argv = array_merge(array($cmd), $_SERVER['argv']);
+   $argc = count($argv);
   include $cmd;
 }
 else {
