fr.inrialpes.exmo.align.cli
Class CommonCLI
java.lang.Object
fr.inrialpes.exmo.align.cli.CommonCLI
- Direct Known Subclasses:
- AlignmentService, EvalAlign, ExtGroupEval, GenPlot, GroupAlign, GroupEval, GroupOutput, ParserPrinter, Procalign, TestGen, WGroupEval
public abstract class CommonCLI
- extends Object
For instanciating this class:
- extends CommonCLI
- call to super() in constructor
- add options in constructor
- CommandLine line = parseCommandLine( args ); in main
- retrieve new options
- retrieve remaining args
- redefine usage() with specific first line
- use parameters
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
static final org.slf4j.Logger logger
options
protected org.apache.commons.cli.Options options
outputfilename
protected String outputfilename
parameters
protected Properties parameters
CommonCLI
public CommonCLI()
run
private void run(String[] args)
parseSpecificCommandLine
public void parseSpecificCommandLine(String[] args)
parseCommandLine
public org.apache.commons.cli.CommandLine parseCommandLine(String[] args)
throws org.apache.commons.cli.ParseException
- Throws:
org.apache.commons.cli.ParseException
exit
public void exit(int returnCode)
usage
public abstract void usage()
usage
public void usage(String firstlines)
usage
public void usage(String firstlines,
String footer)
(C) INRIA & friends, 2003-2014