From: Max Semenik Date: Sun, 21 Feb 2010 08:30:23 +0000 (+0000) Subject: Don't display useless --dbuser and --dbpass in sqlite.php help X-Git-Tag: 1.31.0-rc.0~37678 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=0e89f32f99ec98d8b759790cf157b309ce8b568b;p=lhc%2Fweb%2Fwiklou.git Don't display useless --dbuser and --dbpass in sqlite.php help --- diff --git a/maintenance/sqlite.php b/maintenance/sqlite.php index 40018bd2c7..5b856b4a6c 100644 --- a/maintenance/sqlite.php +++ b/maintenance/sqlite.php @@ -31,6 +31,14 @@ class SqliteMaintenance extends Maintenance { $this->addOption( 'backup-to', 'Backup database to the given file', false, true ); } + /** + * While we use database connection, this simple lie prevents useless --dbpass and + * --dbuser options from appearing in help message for this script. + */ + protected function getDbType() { + return Maintenance::DB_NONE; + } + public function execute() { global $wgDBtype;