You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2013/06/27 12:40:20 UTC
[jira] [Commented] (CLI-238) Help formatter does not display
correct message for options which take single or multilple values
[ https://issues.apache.org/jira/browse/CLI-238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13694604#comment-13694604 ]
Thomas Neidhart commented on CLI-238:
-------------------------------------
The missing <arg> for the first option is already fixed (see CLI-186), the output with the latest version in trunk is as follows:
{noformat}
-d,--destination=<arg> Destination output directory
-js,--javasource=<arg> Java Source File Location
{noformat}
> Help formatter does not display correct message for options which take single or multilple values
> -------------------------------------------------------------------------------------------------
>
> Key: CLI-238
> URL: https://issues.apache.org/jira/browse/CLI-238
> Project: Commons CLI
> Issue Type: Bug
> Components: Help formatter
> Affects Versions: 1.2
> Reporter: Jason Shattu
>
> options.addOption(OptionBuilder
> .withLongOpt("destination")
> .hasArg()
> .withDescription("Destination output directory")
> .create("d"));
> options.addOption(OptionBuilder.withLongOpt("javasource")
> .hasArgs()
> .withValueSeparator(' ')
> .withDescription("Java Source File Location")
> .create("js"))
> this gives
> -d,--destination Destination output directory
> -js,--javasource <arg> Java Source File Location
> but id expect <arg> for destination and multiple args for javasource
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira