|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Command-line flags parsed by com.borland.primtime.PrimeTime
are
processed by implementors of the Command
interface.
Method Summary | |
java.lang.String |
getCommandDescription()
Returns a description used by the command-line help system. |
void |
invokeCommand(java.lang.String[] args)
Called when the flag associated with the command is included on the command-line. |
void |
printCommandHelp(java.io.PrintStream printStream)
Displays a brief description of the behavior of the command-line flag. |
boolean |
takesCommandArguments()
Distinguishes marker flags from flags that are optionally followed by one or more arguments. |
Method Detail |
public boolean takesCommandArguments()
public void invokeCommand(java.lang.String[] args)
System.exit
to prevent further processing.
Commands that need to change the default command executed at the end
of command-line processing may call the registerCommand
method
of com.borland.primetime.PrimeTime
to override the currently
registered behavior.
args
- The parameters that follow the flag on the command-line if
the command takes arguments, null otherwise.public java.lang.String getCommandDescription()
public void printCommandHelp(java.io.PrintStream printStream)
printStream
- The destination for the description.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |