You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Manuel Müller (JIRA)" <ji...@apache.org> on 2011/04/08 09:37:06 UTC

[jira] [Created] (CLI-215) String as default Option type

String as default Option type
-----------------------------

                 Key: CLI-215
                 URL: https://issues.apache.org/jira/browse/CLI-215
             Project: Commons CLI
          Issue Type: Bug
          Components: CLI-1.x
    Affects Versions: 1.2
            Reporter: Manuel Müller
            Priority: Minor


getParsedOptionValue returns null unless Option.type gets explicitly set. The user expects it to be String unless set to any other type.
This coult be either fixed in the Option constructor or in CommandLine.getParsedOptionValue. Mentioning this behaviour in Javadoc would be advisable.



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CLI-215) String as default Option type

Posted by "Emmanuel Bourg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLI-215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated CLI-215:
-------------------------------

    Fix Version/s: 1.3

> String as default Option type
> -----------------------------
>
>                 Key: CLI-215
>                 URL: https://issues.apache.org/jira/browse/CLI-215
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: CLI-1.x
>    Affects Versions: 1.2
>            Reporter: Manuel Müller
>            Priority: Minor
>             Fix For: 1.3
>
>
> getParsedOptionValue returns null unless Option.type gets explicitly set. The user expects it to be String unless set to any other type.
> This coult be either fixed in the Option constructor or in CommandLine.getParsedOptionValue. Mentioning this behaviour in Javadoc would be advisable.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CLI-215) String as default Option type

Posted by "Emmanuel Bourg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLI-215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg resolved CLI-215.
--------------------------------

    Resolution: Fixed
      Assignee: Emmanuel Bourg

Thank you for the report Manuel, this is now fixed on the trunk.

> String as default Option type
> -----------------------------
>
>                 Key: CLI-215
>                 URL: https://issues.apache.org/jira/browse/CLI-215
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: CLI-1.x
>    Affects Versions: 1.2
>            Reporter: Manuel Müller
>            Assignee: Emmanuel Bourg
>            Priority: Minor
>             Fix For: 1.3
>
>
> getParsedOptionValue returns null unless Option.type gets explicitly set. The user expects it to be String unless set to any other type.
> This coult be either fixed in the Option constructor or in CommandLine.getParsedOptionValue. Mentioning this behaviour in Javadoc would be advisable.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira