By default, CLI uses a POSIX style argument parser. This parser only provides support for single character options. To provide support for an application like Ant it is necessary to use the GNU style argument parser. This provides support for multi character options. Read on to discover how to configure this parser and also how to process the command line options.
CLI provides support for multiple parsers. The
org.apache.commons.cli.parser system property is used
to determine what parser to use. To change the parser set the
system property to the class name of the required parser.
There are three types of Options used in Ant. They are: