public static void main(String args[]) throws Exception { QuerySubmitter submitter = new QuerySubmitter(); Options o = new Options(); JCommander jc = null; try { jc = new JCommander(o, args); jc.setProgramName("./submit_plan"); } catch (ParameterException e) { System.out.println(e.getMessage()); String[] valid = {"-f", "file", "-t", "physical"}; new JCommander(o, valid).usage(); System.exit(-1); } if (o.help) { jc.usage(); System.exit(0); } System.exit(submitter.submitQuery(o.location, o.queryString, o.planType, o.zk, o.local, o.bits, o.format, o.width)); }