Wraps an option specification, and allows callers to specify whether the option
accepts arguments (required or optional).
Instances are returned from
OptionParser.accepts(String) to allow the
formation of parser directives as sentences in a domain-specific language. For
example:
OptionParser parser = new OptionParser();
parser.accepts( "c" ).withRequiredArg().ofType( Integer.class );
If no methods are invoked on an instance of this class, then that instance's option
will accept no argument.
since: 2.0 author: Paul Holser version: $Id: OptionSpecBuilder.java,v 1.16 2007/04/10 20:06:25 pholser Exp $ |