X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a..6932310fd58ebef145fa01eb76edf7150284d8ea:/maintenance/commandLine.inc diff --git a/maintenance/commandLine.inc b/maintenance/commandLine.inc index 4ae753ba..206e0467 100644 --- a/maintenance/commandLine.inc +++ b/maintenance/commandLine.inc @@ -1,47 +1,72 @@ addOption( $name, '', false, true ); } - } - - public function getDbType() { - global $wgUseNormalUser; - - return ( isset( $wgUseNormalUser ) && $wgUseNormalUser ) ? - Maintenance::DB_STD : Maintenance::DB_ADMIN; + foreach ( $optionsWithoutArgs as $name ) { + $this->addOption( $name, '', false, false ); + } } /** * No help, it would just be misleading since it misses custom options + * @param bool $force */ protected function maybeHelp( $force = false ) { - if ( !$force ) + if ( !$force ) { return; + } parent::maybeHelp( true ); } public function execute() { + // @codingStandardsIgnoreStart MediaWiki.NamingConventions.ValidGlobalName.wgPrefix global $args, $options; + // @codingStandardsIgnoreEnd $args = $this->mArgs; $options = $this->mOptions; } } $maintClass = 'CommandLineInc'; -require( RUN_MAINTENANCE_IF_MAIN ); - +require RUN_MAINTENANCE_IF_MAIN;