public class CLI extends Object
| Modifier and Type | Method and Description |
|---|---|
static CLI |
inject(String... args)
Creates a new CLI instance for the given arguments.
|
<T> T |
into(T target)
The target object to inject the arguments into.
|
void |
printUsage(org.apache.commons.cli.Options opts)
Prints out the options for the cli
|
public static CLI inject(String... args)
args - the arguments to injectpublic <T> T into(T target)
CliOption or CliOptionGroup which are
required to populate those fields with values from the arglineT - the type of the targettarget - the target to inject values intopublic void printUsage(org.apache.commons.cli.Options opts)
Copyright © 2016 DevCon5 GmbH. All rights reserved.