### Eclipse Workspace Patch 1.0
#P drush
Index: drush.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/drush.php,v
retrieving revision 1.21
diff -u -r1.21 drush.php
--- drush.php	11 Feb 2008 20:48:31 -0000	1.21
+++ drush.php	20 Mar 2008 03:01:01 -0000
@@ -31,6 +31,10 @@
  *   and false if being run through cgi or mod_php.
  */
 function drush_verify_cli() {
+  if (php_sapi_name() == 'cgi') {
+    return (is_numeric($_SERVER['argc']) && $_SERVER['argc'] > 0);
+  }
+  
   return (php_sapi_name() == 'cli');
 }
 
