Gets a specific parameter.

@param InputInterface $input
@param string         $key

@return mixed
183691
public function getParameter(InputInterface $input, $key)
    {
        $config = $this->getConfig();
        $adapter = $input->getOption('repo-adapter');

        if ($value = $config->get(['adapters', $adapter, $key])) {
            return $value;
        }

        return $config->get($key);
    }
320793
public function getInputValue($key = null, $default = null)
    {
        $input = $this->getInputSource()->all() + $this->query->all();

        return ArrayHelper::get($input, $key, $default);
    }
739670
public function input($key = null, $default = null)
    {
        if ($key) {
            return $this->get($key, $default);
        } else {
            return $this->all();
        }
    }
377705
protected function getOptions(InputInterface $input)
    {
        $opts = array();

        foreach ($this->sshOptionOptions as $key => $option) {
            if ($input->getOption($key)) {
                $opts[$option] = $input->getOption($key);
            }
        }

        if ($input->getOption('keyfile')) {
            $opts['PasswordAuthentication'] = 'no';
            $opts['PubkeyAuthentication'] = 'yes';
            $opts['IdentitiesOnly'] = 'yes';
            $opts['IdentityFile'] = $input->getOption('keyfile');
        } else if ($input->getOption('password')) {
            $opts['PasswordAuthentication'] = 'yes';
            $opts['PubkeyAuthentication'] = 'no';
        }

        return $opts;
    }
428517
protected function getCommand(InputInterface $input)
    {
        /** @var ServerRegistry $serverRegistry */
        $serverRegistry = $this->getContainer()->get('nanbando.server_registry');

        return $serverRegistry->getCommand($this->getServerName($input), $this->getName());
    }
329139
public function input( $key = null, $default = null ) {
		return data_get(
			$this->get_input_source()->all() + $this->query->all(), $key, $default
		);
	}
679601
public function getParameter($key, $default = null) {
        $parameter = array_get($this->parameters, $key, $default);

        if ($parameter === null) {
            return $default;
        }

        return $parameter;
    }
1041112
protected function getSites(InputInterface $input)
    {
        $parameters = [];
        $identifiers = $input->getOption('site');

        if ('all' !== current($identifiers)) {
            $parameters['id'] = 1 === \count($identifiers) ? current($identifiers) : $identifiers;
        }

        return $this->getSiteManager()->findBy($parameters);
    }
1084695
public function getParam($key)
    {
        return isset($this->_rawRequest[$key]) ? $this->_rawRequest[$key] : null;
    }
250466
protected function getPassword(InputInterface $input, OutputInterface $output): ?string
    {
        $password = $input->getOption('password');
        if (null === $password && $input->isInteractive()) {
            $message = $this->translator->trans('user.blank_password_info', [], 'security');
            $output->writeln("<info>{$message}</info>");
            /** @var QuestionHelper $questionHelper */
            $questionHelper = $this->getHelper('question');
            $question = new Question(
                "<info>{$this->translator->trans('admin.user.form.password.label')}: </info>"
            );
            $question->setHidden(true);
            $password = (string) $questionHelper->ask($input, $output, $question);
        }

        return $password;
    }
307060
protected function createUser(InputInterface $input)
    {
        return $this->userFactory->createUser()
            ->setEmail($input->getArgument('email'))
            ->setPlainPassword($input->getArgument('password'));
    }
1079379
protected function getCommandConfigValue(InputInterface $input)
    {
        $config = [];
        if (!empty($input->getOption('group'))) {
            $config['group'] = $input->getOption('group');
        }

        if (true === ($input->getOption('group-skip-empty'))) {
            $config['group-skip-empty'] = true;
        }

        return array_merge(
            $config,
            array_filter([
                'group-type' => $input->getOption('group-type'),
                'sort-type' => $input->getOption('sort-type'),
                'sort-direction' => $input->getOption('sort-direction'),
            ], function ($element) {
                return !is_null($element);
            })
        );
    }
377053
public function input($key = null, $default = null)
    {
        $input = $this->getInputSource()->all() + $this->query->all();

        return array_get($input, $key, $default);
    }
741836
private function withParam( string$input )
	{
		return str_replace('$_FLAG_$',"__HTSL_CTRL_FLAG_{$this->id}__",preg_replace_callback('/(?<!%)%s((?:\\/.+?(?<!\\\\)\\/.+?(?<!\\\\)\\/)+)?/',function( array$matches ){
			$param= $this->param;

			if( isset($matches[1]) ){
				array_map(...[
					function($replacer)use(&$param){
						list($pattern,$replacement,)= preg_split('/(?<!\\\\)\\//',$replacer);
						$param= preg_replace(...[
							"/$pattern/",
							preg_replace('/^\\\\_$/','',$replacement),
							$param,
						]);
					},
					preg_split(
						'/(?<!\\\\)\\/\\//'
						,
						trim($matches[1],'/')
					),
				]);
			}
			return $param;
		},$input));
	}
839861
private function getPassword(InputInterface $input, OutputInterface $output)
    {
        if ($pass = $input->getOption('pass')) {
            return $pass;
        }
        if ($pass = $this->getTransifexConfigValue('/pass')) {
            $this->writelnVerbose($output, 'Using transifex password specified in config.');

            return $pass;
        }
        if ($pass = getenv('transifexpass')) {
            $this->writelnVerbose($output, 'Using transifex password specified in environment.');

            return $pass;
        }
        if ($input->isInteractive()) {
            /** @var \Symfony\Component\Console\Helper\QuestionHelper $dialog */
            $dialog = $this->getHelperSet()->get('question');
            if ($pass = $dialog->ask($input, $output, (new Question('Transifex password:'))->setHidden(true))) {
                return $pass;
            }
        }

        throw new \RuntimeException('Error: you must either specify a password on the commandline or run interactive.');
    }
1109049
public function getIO(InputInterface $input, OutputInterface $output) : IO
    {
        if (null === $this->io) {
            $this->io = new IO\DefaultIO($input, $output, $this->getHelperSet());
        }
        return $this->io;
    }
1102350
public function input(string $key = null, $default = null)
    {
        $inputs = $this->getQueryParams() + $this->getParsedBody();
        if (is_null($key)) {
            return $inputs;
        }
        return $inputs[$key] ?? $default;
    }