DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21349>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21349 HelpFormatter is only able to print last option that has a longOpt and no shortOpt. Summary: HelpFormatter is only able to print last option that has a longOpt and no shortOpt. Product: Commons Version: 1.0 Beta 2 Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: CLI AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When having more that one option that only has a longOpt and no shortOpt, only the last option of these will be printed by the HelpFormatter. in Options.java this should fix the problem: 212c212,214 < return new ArrayList( shortOpts.values() ); --- > Set tmpSet = new HashSet(longOpts.values()); > tmpSet.addAll(shortOpts.values()); > return new ArrayList( tmpSet ); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
