public function execute() { $bot = new FuzzyScript($this->getArg(0)); if ($this->hasOption('skiplanguages')) { $bot->skipLanguages = array_map('trim', explode(',', $this->getOption('skiplanguages'))); } $bot->comment = $this->getOption('comment'); $bot->dryrun = !$this->hasOption('really'); $bot->setProgressCallback(array($this, 'myOutput')); $bot->execute(); }
Options: --really Really fuzzy, no dry-run --skiplanguages Skip some languages (comma separated) --comment Comment for updating EOT ); exit( 1 ); } if ( isset( $options['help'] ) ) { showUsage(); } $bot = new FuzzyScript( $args ); if ( isset( $options['skiplanguages'] ) ) { $_skipLanguages = array(); $_skipLanguages = array_map( 'trim', explode( ',', $options['skiplanguages'] ) ); $bot->skipLanguages = $_skipLanguages; } if ( isset( $options['norc'] ) ) { $cs->norc = true; } if ( isset( $options['comment'] ) ) { $bot->comment = $options['comment']; } if ( isset( $options['really'] ) ) {