You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2017/03/25 18:34:41 UTC
[jira] [Resolved] (CLI-271) CommandLine.getXXX and
CommandLine.hasXXX should accept an Option as a parameter
[ https://issues.apache.org/jira/browse/CLI-271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benedikt Ritter resolved CLI-271.
---------------------------------
Resolution: Fixed
{code}
~/w/a/c/commons-cli > svn ci
Sending src/changes/changes.xml
Sending src/main/java/org/apache/commons/cli/CommandLine.java
Sending src/test/java/org/apache/commons/cli/CommandLineTest.java
Sending src/test/java/org/apache/commons/cli/OptionTest.java
Sending src/test/java/org/apache/commons/cli/ValueTest.java
Sending src/test/java/org/apache/commons/cli/bug/BugCLI133Test.java
Transmitting file data ......done
Committing transaction...
Committed revision 1788678.
{code}
Thank you for contributing!
> CommandLine.getXXX and CommandLine.hasXXX should accept an Option as a parameter
> --------------------------------------------------------------------------------
>
> Key: CLI-271
> URL: https://issues.apache.org/jira/browse/CLI-271
> Project: Commons CLI
> Issue Type: Improvement
> Components: CLI-1.x
> Affects Versions: 1.4
> Reporter: Christoph Läubrich
> Assignee: Benedikt Ritter
> Fix For: 1.5
>
>
> Currently there is some searching and String matching to find a matching option for the hasXXX and getXXX it would be nice to pass in an Option instance directly, this would also allow further improvements (e.g. infer the type of an option), prevents exhaustive search for matching option as well as type-safety.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)