arg = ap.getArgValues("rtc"); if (arg != null) { runTests(arg[0], arg[1]); }
    public static void main(String[] argv) {        Debug.init();        ArgParser ap = new ArgParser("MGRSPoint");        ap.add("mgrs", "Print Latitude and Longitude for MGRS value", 1);        ap.add("latlon", "Print MGRS for Latitude and Longitude values", 2, true);        ap.add("sets", "Print the MGRS 100k table");        ap.add("altsets", "Print the MGRS 100k table for the Bessel ellipsoid");        if (!ap.parse(argv)) {            ap.printUsage();            System.exit(0);        }        String arg[];        arg = ap.getArgValues("sets");        if (arg != null) {            new MGRSPoint().print100kSets();        }                arg = ap.getArgValues("altsets");        if (arg != null) {            MGRSPoint mgrsp = new MGRSPoint();            mgrsp.setOriginColumnLetters(BESSEL_SET_ORIGIN_COLUMN_LETTERS);            mgrsp.setOriginRowLetters(BESSEL_SET_ORIGIN_ROW_LETTERS);            mgrsp.print100kSets();        }                arg = ap.getArgValues("mgrs");        if (arg != null) {            try {                MGRSPoint mgrsp = new MGRSPoint(arg[0]);                Debug.output(arg[0] + " is " + mgrsp.toLatLonPoint());              } catch (NumberFormatException nfe) {                Debug.error(nfe.getMessage());            }        }                arg = ap.getArgValues("latlon");        if (arg != null) {            try {                float lat = Float.parseFloat(arg[0]);                float lon = Float.parseFloat(arg[1]);                LatLonPoint llp = new LatLonPoint(lat, lon);                MGRSPoint mgrsp = LLtoMGRS(llp);                Debug.output(llp + " is " + mgrsp);            } catch (NumberFormatException nfe) {                Debug.error("The numbers provided:  " + argv[0] + ", " +                            argv[1] + " aren't valid");            }        }    }