Class Main
java.lang.Object
org.apache.creadur.whisker.cli.Main
Command line interface for whisker.
-
Constructor Summary
ConstructorsConstructorDescriptionMain(org.apache.creadur.whisker.app.Whisker whisker) Constructs a wrapper for the given application. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.creadur.whisker.app.WhiskerParses arguments and configures the application.static voidBootstraps application.org.apache.commons.cli.CommandLineParses a line of arguments.booleanDo these command line arguments ask for help?intRuns Whisker.
-
Constructor Details
-
Main
public Main(org.apache.creadur.whisker.app.Whisker whisker) Constructs a wrapper for the given application.- Parameters:
whisker- not null
-
-
Method Details
-
main
-
parse
public org.apache.commons.cli.CommandLine parse(String[] args) throws org.apache.commons.cli.ParseException Parses a line of arguments.- Parameters:
args- not null- Returns:
- not null
- Throws:
org.apache.commons.cli.ParseException- when parsing fails
-
configure
public org.apache.creadur.whisker.app.Whisker configure(String[] args) throws org.apache.commons.cli.ParseException Parses arguments and configures the application.- Parameters:
args- not null- Returns:
- not null
- Throws:
org.apache.commons.cli.ParseException- when arguments cannot be parsed
-
run
-
printHelp
Do these command line arguments ask for help?- Parameters:
args- not null- Returns:
- true when command line contains option for help, false otherwise
- Throws:
org.apache.commons.cli.ParseException- in case options could not be read properly.
-