}
CommandOutput output;
if ( StringUtils.equals( options.getOutput(), CliMainOptions.STDOUT ) )
{
output = new PrintStreamCommandOutput( System.out, System.err );
}
else
{
File outputFile = new File( options.getOutput() );
output = new FileCommandOutput( outputFile );