setName(self::$commandName); $this->addOption('sv', null, InputOption::VALUE_REQUIRED, 'Server Name'); $this->addOption('method', null, InputOption::VALUE_REQUIRED, 'Server Method'); } protected function execute(InputInterface $input, OutputInterface $output): int { $this->LocalService()->{$input->getOption('sv')}->{$input->getOption('method')}(); return 0; } }