code: public void find(String level, String cp1, String cp2) throws IOException {
      if (level == null || cp1 == null) {
        throw new IllegalArgumentException("level and cp1 are required");
      }
      if (cp2 == null) {
        cp2 = cp1;
      }
      int levelFlag;
      if ("class".equals(level)) {
        levelFlag = DepHandler.LEVEL_CLASS;
      } else if ("jar".equals(level)) {
        levelFlag = DepHandler.LEVEL_JAR;
      } else {
        throw new IllegalArgumentException("unknown level " + level);
      }
      PrintWriter w = new PrintWriter(System.out);
      DepHandler handler = new TextDepHandler(w, levelFlag);
      new DepFind().run(cp1, cp2, handler);
      w.flush();
    }
docs: TODO: make level an enum