commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michal Srb (JIRA)" <>
Subject [jira] [Created] (CLI-253) Unrecognized option: --null
Date Fri, 19 Jun 2015 13:15:00 GMT
Michal Srb created CLI-253:

             Summary: Unrecognized option: --null
                 Key: CLI-253
             Project: Commons CLI
          Issue Type: Bug
          Components: CLI-1.x
    Affects Versions: 1.3.1, 1.3
            Reporter: Michal Srb

groovy project uses commons-cli in following way:
options.addOption(OptionBuilder.hasArg().withArgName("path").withDescription("Specify where
to find the class files - must be first argument").create("classpath"));
for '-classpath'").create("cp"));

When called with long option "--classpath ...", it throws exception:
org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: --null

Same code works fine with commons-cli 1.2.

This message was sent by Atlassian JIRA

View raw message