You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sandeep Tamhankar (JIRA)" <ji...@apache.org> on 2017/11/21 01:42:00 UTC

[jira] [Created] (CLI-281) Make concatenated options configurable

Sandeep Tamhankar created CLI-281:
-------------------------------------

             Summary: Make concatenated options configurable
                 Key: CLI-281
                 URL: https://issues.apache.org/jira/browse/CLI-281
             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
(v6.4.14#64029)