// set this from a system property or default to jboss
String programName = System.getProperty("program.name", "jboss");
String sopts = "-:hD:d:p:n:c:Vj::B:L:C:P:b:g:u:m:H:N:";
LongOpt[] lopts =
{
new LongOpt("help", LongOpt.NO_ARGUMENT, null, 'h'),
new LongOpt("bootdir", LongOpt.REQUIRED_ARGUMENT, null, 'd'),
new LongOpt("patchdir", LongOpt.REQUIRED_ARGUMENT, null, 'p'),
new LongOpt("netboot", LongOpt.REQUIRED_ARGUMENT, null, 'n'),
new LongOpt("configuration", LongOpt.REQUIRED_ARGUMENT, null, 'c'),
new LongOpt("version", LongOpt.NO_ARGUMENT, null, 'V'),
new LongOpt("jaxp", LongOpt.REQUIRED_ARGUMENT, null, 'j'),
new LongOpt("bootlib", LongOpt.REQUIRED_ARGUMENT, null, 'B'),
new LongOpt("library", LongOpt.REQUIRED_ARGUMENT, null, 'L'),
new LongOpt("classpath", LongOpt.REQUIRED_ARGUMENT, null, 'C'),
new LongOpt("properties", LongOpt.REQUIRED_ARGUMENT, null, 'P'),
new LongOpt("host", LongOpt.REQUIRED_ARGUMENT, null, 'b'),
new LongOpt("partition", LongOpt.REQUIRED_ARGUMENT, null, 'g'),
new LongOpt("udp", LongOpt.REQUIRED_ARGUMENT, null, 'u'),
new LongOpt("mcast_port", LongOpt.REQUIRED_ARGUMENT, null, 'm'),
new LongOpt("hostname", LongOpt.REQUIRED_ARGUMENT, null, 'H'),
new LongOpt("nodename", LongOpt.REQUIRED_ARGUMENT, null, 'N'),
};
Getopt getopt = new Getopt(programName, args, sopts, lopts);
int code;
String arg;