private static String idHash = null;
public static void main(String[] args) {
int argp = 0;
LongOpt[] opts = {
new LongOpt("mime-type", LongOpt.REQUIRED_ARGUMENT, null, 't'),
new LongOpt("method", LongOpt.REQUIRED_ARGUMENT, null, 'm'),
new LongOpt("properties", LongOpt.REQUIRED_ARGUMENT, null, 'p'),
new LongOpt("encoding", LongOpt.REQUIRED_ARGUMENT, null, 'e'),
new LongOpt("directory", LongOpt.REQUIRED_ARGUMENT, null, 'o'),
new LongOpt("help", LongOpt.NO_ARGUMENT, null, 'h'),
new LongOpt("indent", LongOpt.REQUIRED_ARGUMENT, null, 'i'),
new LongOpt("define", LongOpt.REQUIRED_ARGUMENT, null, 'd'),
new LongOpt("version", LongOpt.NO_ARGUMENT, null, 'v'),
new LongOpt("resolve-entities", LongOpt.NO_ARGUMENT, null,'r'),
new LongOpt("suppress-comments", LongOpt.NO_ARGUMENT, null,'C'),
new LongOpt("transform", LongOpt.REQUIRED_ARGUMENT, null,'x'),
new LongOpt("skip-validation", LongOpt.NO_ARGUMENT, null, 'V'),
new LongOpt("no-media-type", LongOpt.NO_ARGUMENT, null, 'T'),
new LongOpt("library", LongOpt.REQUIRED_ARGUMENT, null, 'L'),
new LongOpt("hash", LongOpt.REQUIRED_ARGUMENT, null, 'H'),
new LongOpt("autohash", LongOpt.NO_ARGUMENT, null, 'a')
};
Getopt go = new Getopt("dexter", args,
"m::L::o::p::e::i::t::d::x::H::hvrCVT", opts, false);
int s;