int runningTotal = 0;
    public static void main(String[] argv) {        Debug.init();        ArgParser ap = new ArgParser("SVG2GIF");        ap.add("dimension",                "Dimension of output image, add height and width arguments separated by a space",                2);        if (argv.length == 0) {            ap.bail("Usage: java com.bbn.openmap.util.wanderer.SVG <dir> (-help for options)",                    false);        }        ap.parse(argv);        Dimension dim = null;        String[] arg = ap.getArgValues("dimension");        if (arg != null) {            String heightString = arg[0];            String widthString = arg[1];            Debug.output("Creating images with height (" + heightString                    + ") width (" + widthString + ")");            try {                int width = Integer.parseInt(widthString);                int height = Integer.parseInt(heightString);                dim = new Dimension(width, height);            } catch (NumberFormatException nfe) {                String message = "Problem reading dimensions: " + nfe.getMessage();                ap.bail(message, false);            }        }        String[] dirs = ap.getRest();        SVG2GIF svg2gif = new SVG2GIF();        if (dim != null) {            svg2gif.setDimension(dim);        }        Wanderer wanderer = new Wanderer(svg2gif);        int runningTotal = 0;        // Assume that the arguments are paths to directories or        // files.        for (int i = 0; i < dirs.length; i++) {            wanderer.handleEntry(new File(dirs[i]));        }    }