private static void parseArgs(final String[] args) {
        final Iterator<String> argIter = Arrays.asList(args).iterator();

        while (argIter.hasNext()) {
            try {
                parseNext(argIter);
            } catch (IllegalArgumentException e) {
                printFile(USAGE_FILE, System.err);
                System.err.println();
                System.err.println("Couldn't parse the command"
                    + " line arguments:");
                System.err.println(e.getLocalizedMessage());
                System.exit(1);
            } catch (Exception e) {
                printFile(USAGE_FILE, System.err);
                System.err.println();
                System.err.println("Couldn't parse the command"
                    + " line arguments:");
                e.printStackTrace();
                System.exit(1);
            }
        }
    }