commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Läubrich (JIRA) <j...@apache.org>
Subject [jira] [Updated] (CLI-273) CommandLine.hasOption returns false if option is not true in Properties
Date Mon, 13 Mar 2017 10:36:04 GMT

     [ https://issues.apache.org/jira/browse/CLI-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Christoph Läubrich updated CLI-273:
-----------------------------------
    Summary: CommandLine.hasOption returns false if option is not true in Properties  (was:
CommandLine.hasOption returns false if option is empty in Properties)

> CommandLine.hasOption returns false if option is not true in Properties
> -----------------------------------------------------------------------
>
>                 Key: CLI-273
>                 URL: https://issues.apache.org/jira/browse/CLI-273
>             Project: Commons CLI
>          Issue Type: Improvement
>            Reporter: Christoph Läubrich
>
> If providing an Option that has no argument from Properties then CommandLine.hasOption
returns false, it only returns true if you asign a value of "true"
> See https://github.com/laeubi/commons-cli/blob/d98cb4737177cfdb500c0668c05667ace7ec4855/src/test/java/org/apache/commons/cli/bug/BugCLI273Test.java
for a test-case.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message