*/ require_once( dirname( __FILE__ ) . '/Maintenance.php' ); class CommandLineInstaller extends Maintenance { public function __construct() { parent::__construct(); $this->addOption( 'name', 'Who to say Hello to', false, true ); } public function execute() { $name = $this->getOption( 'name', 'World' ); echo "Hello, $name!\n"; } } wfRunMaintenance( 'CommandLineInstaller' );