Description
This is a RFE to implement the java memory setting style of option, that is a single hyphen with a long option name and a value immediately after.
For example: -Xmx512M
public void testJavaMemorySettings() throws Exception { Options options = new Options(); options.addOption(OptionBuilder.withLongOpt("Xmx").hasArg().create("Xmx")); Parser parser = new GnuParser(); CommandLine cl = parser.parse(options, new String[] { "-Xmx512M" }); assertTrue(cl.hasOption("Xmx")); assertEquals("512M", cl.getOptionValue("Xmx")); }