public function getInput(array $argv = null)
    {
        try {
            return new ArgvInput($argv, $this->environment->getDefinition());
        } catch (\Exception $e) {
            $this->renderException($e, new ConsoleOutput());
            exit(1);
        }
    }
public function getInput(array $argv = null)
    {
        try {
            return new ArgvInput($argv, $this->environment->getDefinition());
        } catch (\Exception $e) {
            $this->renderException($e, new ConsoleOutput());
            exit(1);
        }
    }
public function getInput ( array $ argv = null ) { try { return new ArgvInput ( $ argv , $ this -> environment -> getDefinition ( ) ) ; } catch ( \ Exception $ e ) { $ this -> renderException ( $ e , new ConsoleOutput ( ) ) ; exit ( 1 ) ; } }
Fetch the ArgvInput used by Peridot. If any exceptions are thrown due to
a mismatch between the option or argument requested and the input definition, the
exception will be rendered and Peridot will exit with an error code.

@param array $argv An array of parameters from the CLI in the argv format.
@return ArgvInput
Fetch the ArgvInput used by Peridot . If any exceptions are thrown due to a mismatch between the option or argument requested and the input definition the exception will be rendered and Peridot will exit with an error code .