Merge "Fix --memory-limit option to maintenance scripts"
[lhc/web/wiklou.git] / maintenance / Maintenance.php
index 4d0af5f..9685177 100644 (file)
@@ -509,7 +509,9 @@ abstract class Maintenance {
                $this->addOption(
                        'memory-limit',
                        'Set a specific memory limit for the script, '
-                               . '"max" for no limit or "default" to avoid changing it'
+                               . '"max" for no limit or "default" to avoid changing it',
+                       false,
+                       true
                );
                $this->addOption( 'server', "The protocol and server name to use in URLs, e.g. " .
                        "http://en.wikipedia.org. This is sometimes necessary because " .