addArgument('sources', InputArgument::REQUIRED, 'The sources will be compiled, comma separated'); } /** * @throws WrongUsageException * @throws FileSystemException * @throws RuntimeException */ public function handle(): int { $sources = array_map('trim', array_filter(explode(',', $this->getArgument('sources')))); if (empty($sources)) { $this->output->writeln('sources cannot be empty, at least contain one !'); return static::FAILURE; } SourceManager::initSource(sources: $sources); logger()->info('Extract done !'); return static::SUCCESS; } }