Package org.nlpub.watset.cli
Class Application
- java.lang.Object
-
- org.nlpub.watset.cli.Application
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplication.ParseStatusStatus of command-line argument parsing.
-
Constructor Summary
Constructors Constructor Description Application()Create an instance of the Watset command-line interface.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Watset command-line interface entry point.Application.ParseStatusparse(String... args)Parse the command-line arguments.voidrun()Run the parsed command.voidrun(String command)Run the specified command.
-
-
-
Method Detail
-
main
public static void main(String[] args)
Watset command-line interface entry point.- Parameters:
args- the command-line arguments
-
parse
public Application.ParseStatus parse(String... args)
Parse the command-line arguments.- Parameters:
args- the command-line arguments- Returns:
- the status
-
run
public void run(String command)
Run the specified command.- Parameters:
command- the command
-
-