DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=31148>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31148 Passing properties in Parser does not work for options with a single argument Summary: Passing properties in Parser does not work for options with a single argument Product: Commons Version: Nightly Builds Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: CLI AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] processProperties(Properties properties) in Parser.java calls opt.hasArgs(). The hasArgs() function in Option.java returns true if the option has multiple values (this.numberOfArgs > 1). So for options with a single argument this returns false. A simple fix is to change the opt.hasArgs() call to opt.hasArg() in Parser.java. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
