Re-implementing Maintenance::maybeHelp() in CommandLineInc to not show Maintenance...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 24 Sep 2009 21:41:17 +0000 (21:41 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 24 Sep 2009 21:41:17 +0000 (21:41 +0000)
maintenance/commandLine.inc

index 6ed7b2e..625161a 100644 (file)
@@ -16,9 +16,15 @@ class CommandLineInc extends Maintenance {
                foreach ( $optionsWithArgs as $name ) {
                        $this->addOption( $name, '', false, true );
                }
+       }
 
-               # No help, it would just be misleading since it misses custom options
-               unset( $this->mParams['help'] );
+       /**
+        * No help, it would just be misleading since it misses custom options
+        */
+       protected function maybeHelp( $force = false ) {
+               if ( !$force )
+                       return;
+               parent::maybeHelp( true );
        }
 
        public function execute() {