commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Brand" <>
Subject Commons CLI - possible faulty build
Date Fri, 05 Aug 2016 11:49:54 GMT

i was looking for a tool to parse command line arguments in Java and came
to Apache Commons CLI.

I noticed that using the binary package (commons-cli-1.3.1.jar) from
doesn't work. The program compiles but prints the following error:

Exception in thread "main" java.lang.NoSuchMethodError:

The jar is in the classpath, it's NOT a classpath issue.
Building from source using, all works as expected.
You might want to review the binary release.

A minor issue i found with the method Option.getArgs().
It's said that
"Returns the number of argument values this Option can take."
However, if an option doesn't take any value, the return of this method is
-1 which seems wrong. Does this sound right?

Thanks and best regards

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message