From 0e89f32f99ec98d8b759790cf157b309ce8b568b Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Sun, 21 Feb 2010 08:30:23 +0000 Subject: [PATCH] Don't display useless --dbuser and --dbpass in sqlite.php help --- maintenance/sqlite.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.20.1