public String testDict(CmdOptions parser, Option dictionary, boolean force, boolean read, boolean oblig) {
        String dictionaryValue = (String) parser.getOptionValue(dictionary);
        if (dictionaryValue == null) {
            if (oblig) {
                System.err.println("BAD USAGE. Dictionary file must be defined: {-d | --dict} file");
                System.exit(0);
            } else {
                return null;
            }
        }
        boolean cpok = true;

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

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