public class Option extends java.lang.Object implements RevisionHandler
Typical usage:
Option myOption = new Option("Uses extended mode.", "E", 0, "-E"));
Constructor and Description |
---|
Option(java.lang.String description,
java.lang.String name,
int numArguments,
java.lang.String synopsis)
Creates new option with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
description()
Returns the option's description.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
name()
Returns the option's name.
|
int |
numArguments()
Returns the option's number of arguments.
|
java.lang.String |
synopsis()
Returns the option's synopsis.
|
public Option(java.lang.String description, java.lang.String name, int numArguments, java.lang.String synopsis)
description
- the option's descriptionname
- the option's namenumArguments
- the number of argumentspublic java.lang.String description()
public java.lang.String name()
public int numArguments()
public java.lang.String synopsis()
public java.lang.String getRevision()
getRevision
in interface RevisionHandler