コード例 #1
0
  public static void main(String[] args) {
    GetOpt opts = new GetOpt();

    opts.addBoolean('h', "help", false, "Show this help screen");
    opts.addString('i', "infile", null, "Input .pts file");
    opts.addString('o', "outfile", null, "Output feature vector file");
    opts.addString('t', "type", "shape", "Type of features to extract: {color, shape}");

    if (!opts.parse(args)) {
      System.err.println("ERR: " + opts.getReason());
      System.exit(1);
    }
    if (opts.getBoolean("help")) {
      opts.doHelp();
      System.exit(1);
    }

    PtsFileConverter pfc = new PtsFileConverter(opts);
  }