Package coneforest.cli
Class Processor
- java.lang.Object
-
- coneforest.cli.Processor
-
public class Processor extends Object
Options processor.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getFreeArgs()
<T> T
getValue(String name)
int
parse(String[] args)
int
parse(String[] args, int freeArgsCount)
-
-
-
Constructor Detail
-
Processor
public Processor(Option... options)
Constructor.- Parameters:
options
- a list of option descriptions.
-
-
Method Detail
-
parse
public int parse(String[] args) throws ProcessingException
- Throws:
ProcessingException
-
parse
public int parse(String[] args, int freeArgsCount) throws ProcessingException
- Throws:
ProcessingException
-
getValue
public <T> T getValue(String name) throws ProcessingException
- Throws:
ProcessingException
-
getFreeArgs
public String[] getFreeArgs()
-
-