You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/10/05 05:10:25 UTC

DO NOT REPLY [Bug 33044] - [cli] Usage Scenario help page misleading

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=33044>.
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=33044





------- Additional Comments From bconner@mac.com  2005-10-05 05:10 -------
The CLI Usage is more than misleading, it's wrong.

In the and ant example the following is given for the '-buildfile' argument:
Option buildfile = OptionBuilder.withArgName( "file" )
                                .hasArg()
                                .withDescription(  "use given buildfile" )
                                .create( "buildfile");

The problem is .create(String) is a char value so it will only see the 'b'. This puts the Options in a 
inconsistent state where passing '-buildfile' will result in "Unrecognized option '-b'" and the 
HelpFormater will still read "-buildfile <file>". It appears it is not possible to match ants short forms of 
options because CLI only supports single character short forms.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org