4 * Backwards-compatibility wrapper for old-style maintenance scripts
6 require( dirname(__FILE__) . '/Maintenance.php' );
7 $optionsWithArgs = array();
9 class CommandLineInc extends Maintenance {
10 public function __construct() {
11 global $optionsWithArgs;
12 parent::__construct();
13 foreach ( $optionsWithArgs as $name ) {
14 $this->addOption( $name, '', false, true );
17 # No help, it would just be misleading since it misses custom options
18 unset( $this->mParams['help'] );
21 public function execute() {
22 global $args, $options;
24 $options = $this->mOptions;
28 $maintClass = 'CommandLineInc';
29 require( DO_MAINTENANCE );