Replace spaces with tabs
[lhc/web/wiklou.git] / maintenance / mctest.php
index edd001f..9adb85a 100644 (file)
@@ -29,7 +29,7 @@ class mcTest extends Maintenance {
                $this->mDescription = "Makes several 'set', 'incr' and 'get' requests on every"
                                                          . " memcached server and shows a report";
                $this->addOption( 'i', 'Number of iterations', false, true );
-               $this->addArg( 'server', 'Memcached server to test', false );
+               $this->addArg( 'server[:port]', 'Memcached server to test, with optional port', false );
        }
 
        public function execute() {
@@ -64,7 +64,7 @@ class mcTest extends Maintenance {
                                }
                        }
                        $exectime = $this->microtime_float() - $time_start;
-       
+
                        $this->output( "set: $set   incr: $incr   get: $get time: $exectime", $server );
                }
        }
@@ -80,4 +80,4 @@ class mcTest extends Maintenance {
 }
 
 $maintClass = "mcTest";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );