commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLI-238) Help formatter does not display correct message for options which take single or multilple values
Date Thu, 27 Jun 2013 10:40:20 GMT

    [ 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

Mime
View raw message