foreach( $options as $option ) { $input->registerOption( $option ); } try { $input->process(); } catch ( ezcBaseException $e ) { $output->outputLine( $e->getMessage(), "error" ); die( -1 ); } if ( $input->getOption( "h" )->value !== false ) { $output->outputLine( $input->getHelpText( "Forwarwds mail from the console." ) ); exit( 0 ); } $output->options->verbosityLevel = ( $verbosity = $input->getOption( "v" )->value ) === false ? 1 : $verbosity;