cl_sortkey should be 230 bytes long, not 255
[lhc/web/wiklou.git] / maintenance / helloWorld.php
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.
5 *
6 * @file
7 * @ingroup Maintenance
8 * @copyright CC0 http://creativecommons.org/publicdomain/zero/1.0/
9 * @author Mark A. Hershberger <mah@everybody.org>
10 */
11
12 require_once( dirname( __FILE__ ) . '/Maintenance.php' );
13
14 class CommandLineInstaller extends Maintenance {
15
16 public function __construct() {
17 parent::__construct();
18
19 $this->addOption( 'name', 'Who to say Hello to', false, true );
20 }
21
22 public function execute() {
23 $name = $this->getOption( 'name', 'World' );
24 echo "Hello, $name!\n";
25 }
26 }
27
28 wfRunMaintenance( 'CommandLineInstaller' );