void processUnixWay(String argChars, String[] args, boolean shouldFail) {

		GetOpt getopt = new GetOpt(argChars);

		int errs = 0;

		char c;
		while ((c = getopt.getopt(args)) != 0) {
			if (c == '?') {
				++errs;
			} else {
				Debug.println("getopt", "Found " + c);
				//if (getopt.optarg() != null)
				//	System.out.print("; Option " + getopt.optarg());
			}
		}

		// Process any filename-like arguments.
		assertTrue(args.length >= getopt.getOptInd());
		for (int i = getopt.getOptInd(); i<args.length; i++) {
			Debug.printf("getopt", "%d %s%n", i, args[i]);
			String fileName = args[i];
			assertFalse(fileName.startsWith("-"));
		}
		
		if (errs > 0 && !shouldFail) {
			fail("Errors in this run");
		}
	}