addOption( $name, '', false, true ); } foreach ( $optionsWithoutArgs as $name ) { $this->addOption( $name, '', false, false ); } } /** * No help, it would just be misleading since it misses custom options * @param bool $force */ protected function maybeHelp( $force = false ) { if ( !$force ) { return; } parent::maybeHelp( true ); } public function execute() { // @codingStandardsIgnoreStart MediaWiki.NamingConventions.ValidGlobalName.wgPrefix global $args, $options; // @codingStandardsIgnoreEnd $args = $this->mArgs; $options = $this->mOptions; } } $maintClass = 'CommandLineInc'; require RUN_MAINTENANCE_IF_MAIN;