commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Shattu (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 Fri, 28 Jun 2013 20:04:20 GMT

    [ https://issues.apache.org/jira/browse/CLI-238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13695733#comment-13695733
] 

Jason Shattu commented on CLI-238:
----------------------------------

what would you expect for the 2nd option - it doesn't look right to me
                
> 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