/**
* Copyright (C) 2005 Brion Vibber <brion@pobox.com>
* http://www.mediawiki.org/
- *
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
$originalDir = getcwd();
-$optionsWithArgs = array( 'server', 'pagelist', 'start', 'end' );
+$optionsWithArgs = array( 'pagelist', 'start', 'end' );
require_once( 'commandLine.inc' );
require_once( 'SpecialExport.php' );
if( isset( $options['quiet'] ) ) {
$dumper->reporting = false;
}
-if( isset( $options['report'] ) ) {
- $dumper->reportingInterval = intval( $options['report'] );
-}
-if( isset( $options['server'] ) ) {
- $dumper->server = $options['server'];
-}
if ( isset( $options['pagelist'] ) ) {
$olddir = getcwd();
$pages = file( $options['pagelist'] );
chdir( $olddir );
if ( $pages === false ) {
- print "Unable to open file {$options['pagelist']}\n";
- exit;
+ wfDie( "Unable to open file {$options['pagelist']}\n" );
}
$pages = array_map( 'trim', $pages );
$dumper->pages = array_filter( $pages, create_function( '$x', 'return $x !== "";' ) );