Uploaded image for project: 'Commons CLI'
  1. Commons CLI
  2. CLI-281

Make concatenated options configurable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.4
    • None
    • Parser
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stamhankar999 Sandeep Tamhankar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: