Renamed annoying --iknowwhatimdoing param to --force (bug 32073)
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 31 Oct 2011 17:30:47 +0000 (17:30 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 31 Oct 2011 17:30:47 +0000 (17:30 +0000)
maintenance/update.php

index c1849b1..16561f5 100644 (file)
@@ -43,7 +43,7 @@ class UpdateMediaWiki extends Maintenance {
                $this->addOption( 'quick', 'Skip 5 second countdown before starting' );
                $this->addOption( 'doshared', 'Also update shared tables' );
                $this->addOption( 'nopurge', 'Do not purge the objectcache table after updates' );
-               $this->addOption( 'iknowwhatimdoing', 'Override when $wgMiserMode disables this script' );
+               $this->addOption( 'force', 'Override when $wgMiserMode disables this script' );
        }
 
        function getDbType() {
@@ -78,10 +78,10 @@ class UpdateMediaWiki extends Maintenance {
        function execute() {
                global $wgVersion, $wgTitle, $wgLang, $wgMiserMode;
 
-               if( $wgMiserMode && !$this->hasOption( 'iknowwhatimdoing' ) ) {
+               if( $wgMiserMode && !$this->hasOption( 'force' ) ) {
                        $this->error( "Do not run update.php on this wiki. If you're seeing this you should\n"
                                . "probably ask for some help in performing your schema updates.\n\n"
-                               . "If you know what you are doing, you can continue with --iknowwhatimdoing", true );
+                               . "If you know what you are doing, you can continue with --force", true );
                }
 
                $wgLang = Language::factory( 'en' );