Changed profile property names - this should be the stable API from now on.
[mediawiki.git] / maintenance / helloWorld.php
blob7493214eb2823a5365412f34f822396c385b7f63
1 <?php
2 /**
3 * To the extent possible under law, I, Mark Hershberger, have waived all copyright and
4 * related or neighboring rights to Hello World. This work is published from United States.
6 * @file
7 * @ingroup Maintenance
8 * @copyright CC0 http://creativecommons.org/publicdomain/zero/1.0/
9 * @author Mark A. Hershberger <mah@everybody.org>
12 require_once( dirname( __FILE__ ) . '/Maintenance.php' );
14 class CommandLineInstaller extends Maintenance {
16 public function __construct() {
17 parent::__construct();
19 $this->addOption( 'name', 'Who to say Hello to', false, true );
22 public function execute() {
23 $name = $this->getOption( 'name', 'World' );
24 echo "Hello, $name!\n";
28 wfRunMaintenance( 'CommandLineInstaller' );