-Index: util/cmd/Runner.class.php
+Index: Runner.class.php
 ===================================================================
---- util/cmd/Runner.class.php	(revision 10875)
-+++ util/cmd/Runner.class.php	(working copy)
+--- Runner.class.php	(revision 10875)
++++ Runner.class.php	(working copy)
 @@ -56,7 +56,7 @@
          '#<pre>#', '#</pre>#', '#<li>#',
        ), array(

 
         if (0 == $method->numArguments()) {
           $optional= TRUE;
@@ -178,13 +178,37 @@
       if (!$classname) {
         self::$err->writeLine('*** Missing classname');
         return 1;
+      } else if (strstr($classname, xp::CLASS_FILE_EXT)) {
+        $file= new File($classname);
+        if (!$file->exists()) {
+          self::$err->writeLine('Cannot load class from non-existant file ', $classname);
+          return 1;
+        }
+        $uri= $file->getURI();

             $select= intval($arg['position']);
             $short= NULL;
           } else if (isset($arg['name'])) {
@@ -293,13 +355,6 @@
             self::$err->writeLine('*** Error for argument '.$name.': '.$e->getMessage());
             return 2;
           }
