You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Christoph Läubrich (JIRA)" <ji...@apache.org> on 2017/03/13 10:36:04 UTC

[jira] [Updated] (CLI-273) CommandLine.hasOption returns false if option is not true in Properties

     [ 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)