private void parseArgs(String[] args) {
		if (args.length <= 1) throw new IllegalArgumentException("Not enough arguments.");
		String targetFilename = args[0];
		if (!targetFilename.endsWith(".zip")) throw new IllegalArgumentException("The target filename must end in .zip");
		outFile = new TransactionalFileOutputStream(targetFilename, false);
		//Store all of the given files in an array.
		filesToWrite = new String[args.length - 1];
		for (int i = 1; i < args.length; i++) {
			filesToWrite[i - 1] = args[i];
		}
	}