Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1455

CliBuilder incorrectly handles unexpected options

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.2
    • None
    • None
    • Ubuntu 6.06 LTS `Dapper Drake' + JDK1.5.0_06 + Groovy SVN 2006-08-10T17:44

    Description

      CliBuilder absorbs unexpected single character options. Testing indicates that this is a problem in org.apache.commons.cli.* not in CliBuilder. I guess we have to nag someone about this.

      CliBuilder appears not to be getting the ParseException when an unknown multicharacter option is seen. org.apache.commons.cli.* is correctly generating a ParseException in Java code so the problem is with Groovy. The code appears to say that on any ParseException, CliBuilder will write the usage message. A test shows this happens for missing required options but it is not happening for unexpected options.

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              russel Dr. Russel Winder
              Votes:
              7 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: