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.
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' );