Package de.unirostock.sems.bives
Class Main
- java.lang.Object
-
- de.unirostock.sems.bives.Main
-
public class Main extends Object
- Author:
- Martin Scharm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMain.ExecutionExceptionThe Class ExecutionException.static classMain.HelpExceptionThe Class HelpException.
-
Field Summary
Fields Modifier and Type Field Description static booleanexitShould we exit?.
-
Constructor Summary
Constructors Constructor Description Main()Instantiates a new main.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)The main method.static org.apache.commons.cli.CommandLineparseCommandLine(String[] args, Executer exe)Parses the command line.voidrun(String[] args)Run.voidusage(String msg)Usage.
-
-
-
Method Detail
-
usage
public void usage(String msg)
Usage.- Parameters:
msg- the error/info msg
-
main
public static void main(String[] args)
The main method.- Parameters:
args- the arguments
-
parseCommandLine
public static org.apache.commons.cli.CommandLine parseCommandLine(String[] args, Executer exe) throws Main.HelpException, Main.ExecutionException
Parses the command line.- Parameters:
args- given argumentsexe- the executer- Returns:
- the command line
- Throws:
Main.HelpException- the help exceptionMain.ExecutionException- the execution exception
-
-