private static void loadArguments(String[] args) {
		for (int a = 0; a < args.length; a++) {
			if (args[a].startsWith("-")) {
				if (args[a].equals(LAF_SWITCH)) {
					if (a < args.length-1) {
						a++;
						lookAndFeelClass = args[a];
					}
				} else if (args[a].equals(JG_LAF_SWITCH)) {
					lookAndFeelClass = SaltProcessor.JGOODIES_PLASTIC_LOOKANDFEEL;
				} else if (args[a].equals(NO_EXIST)) {
					exitAfterRender = false;
				} else if (args[a].equals(OUTPUT_DIR)) {
					if (a < args.length-1) {
						a++;
						outputDirParameter = new File(args[a]);
						if (!outputDirParameter.isDirectory()) {
							System.err.println("The path specified with " + OUTPUT_DIR + " should be a directory.");
							System.exit(1);
						}
					}
				}
			} else {
				inputFilenames.add(args[a]);
			}
		}
	}