dirs = ap.getArgValues("verbose"); if (dirs != null) {
String[] verboseTest = ap.getArgValues("verbose"); if (verboseTest != null) {
    public static void main(String[] argv) {        Debug.init();        boolean toUpper = true;        ArgParser ap = new ArgParser("ChangeCase");        ap.add("upper", "Change file and directory names to UPPER CASE (default). <path> <path> ...", ArgParser.TO_END);        ap.add("lower", "Change file and directory names to lower case. <path> <path> ...", ArgParser.TO_END);        ap.add("verbose", "Announce all changes, failures will still be reported.");        if (argv.length == 0) {            ap.bail("", true);        }        ap.parse(argv);        String[] dirs;        dirs = ap.getArgValues("lower");        if (dirs != null) {            Debug.output("Converting to lower case names...");            toUpper = false;        } else {            dirs = ap.getArgValues("upper");            // No arguments given, going to default.            if (dirs == null) {                dirs = argv;            }            Debug.output("Converting to UPPER CASE names...");        }        boolean verbose = false;        dirs = ap.getArgValues("verbose");        if (dirs != null) {            verbose = true;        }        ChangeCase cc = new ChangeCase(toUpper);        cc.setVerbose(verbose);        // Assume that the arguments are paths to directories or        // files.        for (int i = 0; i < dirs.length; i++) {            cc.handleEntry(new File(dirs[i]));        }    }