public static int main(Iterator<String> argi) {
		RepoConfig repoConfig = new RepoConfig();
		ArrayList<String> resourcePaths = new ArrayList<String>();
		
		while( argi.hasNext() ) {
			String arg = argi.next();
			if( repoConfig.parseCommandLineArg(arg, argi) ) {
			} else if( CCouch3Command.isHelpArgument(arg) ) {
				System.out.println(USAGE);
				return 0;
			} else if( !arg.startsWith("-") || "-".equals(arg) ) {
				resourcePaths.add(arg);
			} else {
				System.err.println("Error: Unrecognized argument: '"+arg+"'");
				return 1;
			}
		}
		
		repoConfig.fix();
		BlobResolver resolver = CCouch3Command.getCommandLineFileResolver(repoConfig);
		
		for( String path : resourcePaths ) {
			ByteBlob from;
			try {
				try {
					from = resolver.getBlob(path);
				} catch( FileNotFoundException e ) {
					System.err.println("Couldn't find input file '"+path+"': "+e.getMessage());
					return 1;
				}
				
				from.writeTo(System.out);
			} catch( IOException e ) {
				e.printStackTrace();
				return 1;
			}
		}
		return 0;
	}