14require_once __DIR__ .
'/Maintenance.php';
32 parent::__construct();
35 $this->
addOption( $name,
'',
false,
true );
38 $this->
addOption( $name,
'',
false,
false );
52 parent::maybeHelp(
true );
56 global $args, $options;
58 $args = $this->parameters->getArgs();
59 $options = $this->parameters->getOptions();
65require_once RUN_MAINTENANCE_IF_MAIN;
global $allowUnregisteredOptions
global $optionsWithoutArgs
execute()
Do the actual work.
maybeHelp( $force=false)
No help, it would just be misleading since it misses custom options.
__construct()
Default constructor.
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
addOption( $name, $description, $required=false, $withArg=false, $shortName=false, $multiOccurrence=false)
Add a parameter to the script.
setAllowUnregisteredOptions( $allow)
Sets whether to allow unregistered options, which are options passed to a script that do not match an...