commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandeep Tamhankar (JIRA)" <>
Subject [jira] [Resolved] (CLI-281) Make concatenated options configurable
Date Tue, 21 Nov 2017 01:45:00 GMT


Sandeep Tamhankar resolved CLI-281.
    Resolution: Duplicate

> Make concatenated options configurable
> --------------------------------------
>                 Key: CLI-281
>                 URL:
>             Project: Commons CLI
>          Issue Type: Improvement
>          Components: Parser
>    Affects Versions: 1.4
>            Reporter: Sandeep Tamhankar
> In my application, I have multi-character short options. I'd like to require the user
to specify such options precisely; allowing substring matches will lead to my users' confusion.
For example, if I have {{-f}} and {{-foo}} options, and the user specifies {{-fao}}, I do
*not* want it interpreted as {{-f}} with value {{ao}}. I want parsing to fail.
> It would be great for a parser option to control this behavior, defaulting to be enabled,
for backward-compatibility.

This message was sent by Atlassian JIRA

View raw message