public String testDMC(
            CmdOptions parser, Option dmc, boolean force, boolean read, boolean oblig) {
        String dmcValue = (String) parser.getOptionValue(dmc);
        if (dmcValue == null) {
            if (oblig) {
                System.err.println("BAD USAGE. dmc file must be defined: {-k | --dmc} file");
                System.exit(0);
            } else {
                return null;
            }
        }

        boolean cpok = true;

        File cpfile = new File(dmcValue);
        if (!cpfile.exists()) {
            cpok = false;
        }

        if (read) {
            if (!cpok) {
                System.err.println("BAD USAGE. dmc file must be an existing file [" + dmcValue + "]");
                System.exit(0);
            }
        } else {
            if (cpok && !force) {
                dmcValue = null;
            }
        }

        return dmcValue;
    }