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-270) UnrecognizedOptionException when providing "Java Property Option" via property files
Date Mon, 13 Mar 2017 10:09:04 GMT

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

Christoph Läubrich updated CLI-270:
-----------------------------------
    Description: 
If you specify a "Java Property Option" as described here https://commons.apache.org/proper/commons-cli/usage.html
it only works when provided via command-line arguments and not via the optional properties
file.
This seems to happen because the properties only allow "perfect match" while the commandline
argument do some kind of prefix matching.

See https://github.com/laeubi/commons-cli/blob/63e91f3414f6abef193f81d963ceccae768cc2e8/src/test/java/org/apache/commons/cli/bug/BugCLI270Test.java
for a test-case.

  was:
If you specify a "Java Property Option" as described here https://commons.apache.org/proper/commons-cli/usage.html
it only works when provided via command-line arguments and not via the optional properties
file.
This seems to happen because the properties only allow "perfect match" while the commandline
argument do some kind of prefix matching.


> UnrecognizedOptionException when providing "Java Property Option" via property files
> ------------------------------------------------------------------------------------
>
>                 Key: CLI-270
>                 URL: https://issues.apache.org/jira/browse/CLI-270
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: CLI-1.x
>    Affects Versions: 1.3, 1.3.1, 1.4
>            Reporter: Christoph Läubrich
>
> If you specify a "Java Property Option" as described here https://commons.apache.org/proper/commons-cli/usage.html
it only works when provided via command-line arguments and not via the optional properties
file.
> This seems to happen because the properties only allow "perfect match" while the commandline
argument do some kind of prefix matching.
> See https://github.com/laeubi/commons-cli/blob/63e91f3414f6abef193f81d963ceccae768cc2e8/src/test/java/org/apache/commons/cli/bug/BugCLI270Test.java
for a test-case.



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

Mime
View raw message