public class PicardCommandLine extends Object
| Constructor | Description |
|---|---|
PicardCommandLine() |
| Modifier and Type | Method | Description |
|---|---|---|
protected static List<String> |
getPackageList() |
The packages we wish to include in our command line
|
static org.broadinstitute.barclay.argparser.CommandLineProgramProperties |
getProgramProperty(Class clazz) |
|
protected int |
instanceMain(String[] args) |
For testing
|
protected int |
instanceMain(String[] args,
List<String> packageList,
String commandLineName) |
The main method.
|
static void |
main(String[] args) |
Override this if you want to include different java packages to search for classes that extend CommandLineProgram.
|
static void |
printUnknown(Set<Class<?>> classes,
String command) |
When a command does not match any known command, searches for similar commands, using the same method as GIT
|
static void |
processAllCommandLinePrograms(List<String> packageList,
BiConsumer<Class<CommandLineProgram>,org.broadinstitute.barclay.argparser.CommandLineProgramProperties> clpClassProcessor) |
Process each
CommandLineProgram-derived class given a list of packages. |
protected static List<String> getPackageList()
protected int instanceMain(String[] args, List<String> packageList, String commandLineName)
protected int instanceMain(String[] args)
public static void main(String[] args)
public static void processAllCommandLinePrograms(List<String> packageList, BiConsumer<Class<CommandLineProgram>,org.broadinstitute.barclay.argparser.CommandLineProgramProperties> clpClassProcessor)
CommandLineProgram-derived class given a list of packages.packageList - list of packages to searchclpClassProcessor - function to process each CommandLineProgram class found in packageList (note
that the CommandLineProgramProperties argument may be null)public static org.broadinstitute.barclay.argparser.CommandLineProgramProperties getProgramProperty(Class clazz)