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 class
Main.ExecutionException
The Class ExecutionException.static class
Main.HelpException
The Class HelpException.
-
Field Summary
Fields Modifier and Type Field Description static boolean
exit
Should 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 void
main(String[] args)
The main method.static org.apache.commons.cli.CommandLine
parseCommandLine(String[] args, Executer exe)
Parses the command line.void
run(String[] args)
Run.void
usage(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
-
-