org.exolab.castor.util
class CmdLineOption extends Object
Field Summary | |
---|---|
String | comment |
String | flag |
boolean | optional |
String | usageText |
Constructor Summary | |
---|---|
CmdLineOption(String flag)
Creates a new CmdLineOption |
Method Summary | |
---|---|
String | getComment()
Returns the comment for this option |
String | getFlag()
Returns the flag associated with this command line option |
boolean | getOptional()
Returns whether or not this CmdLineOption is optional or not |
String | getUsageText()
Returns the text to print after the flag when printing the usage line |
void | setComment(String comment)
Sets a comment for the flag |
void | setOptional(boolean optional)
Sets whether or not this CmdLineOption is optional or not |
void | setUsageText(String usageText)
Sets the text to print after the flag when printing the usage line |
Parameters: flag The flag associated with this command line option
Returns: the comment for this command line option
Returns: the flag associated with this command line option
Returns: true if this CmdLineOption is optional, otherwise false
Returns: the text to print after the flag when printing the usage line
Parameters: comment the comment to use when printing help for the given flag
Parameters: optional the flag indicating whether or not this CmdLineOption is optional
Parameters: usageText the usage text