|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcpptools.Usage
public final class Usage
Provides a means to format an application usage.
| Constructor Summary | |
|---|---|
Usage(java.lang.String name,
java.lang.String url,
java.lang.String version)
Create a usage helper. |
|
| Method Summary | |
|---|---|
void |
addOption(java.lang.String option,
java.lang.String description)
Add an option description. |
void |
display()
Display the usage information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Usage(java.lang.String name,
java.lang.String url,
java.lang.String version)
name - the application nameurl - the application site urlversion - the application version| Method Detail |
|---|
public void addOption(java.lang.String option,
java.lang.String description)
option - the name of the optiondescription - the description of the optionpublic void display()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||