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

Allow to specify options with a single argument that will be split into multiple arguments

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2
    • None
    • CLI-1.x

    Description

      I've explained the issue in that thread:
      http://www.mail-archive.com/user@commons.apache.org/msg06483.html

      As hinted there, a solution might be to allow that the (single) argument of an "Option" (cf. "hasArg()") be split according to a user-defined regexp pattern. If given a split pattern, the code would convert a single-arg "Option" into a multiple-args one (where the arguments are the result of splitting the single-arg string with the pattern).

      Attachments

        1. svn_diff.txt
          6 kB
          Gilles Sadowski

        Activity

          People

            Unassigned Unassigned
            erans Gilles Sadowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: