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

Christoph Läubrich updated CLI-273:
-----------------------------------
    Description: 
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.

  was: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"


> CommandLine.hasOption returns false if option is empty 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)

Reply via email to