public class CLI extends Object
CliOption which fields should be populated from command line argument or CliOptionGroup to
declare objects that are populated by a set of arguments. To perform additional initialization steps annotate a
parameter-less method with PostInject.| Modifier and Type | Method and Description |
|---|---|
<T> boolean |
into(T target)
The target object to parse the arguments into.
|
static CLI |
parse(String... args)
Creates a new CLI instance for the given arguments.
|
void |
printUsage(org.apache.commons.cli.Options opts)
Prints out the options for the cli
|
public static CLI parse(String... args)
args - the arguments to parsepublic <T> boolean 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 parse values intopublic void printUsage(org.apache.commons.cli.Options opts)
Copyright © 2016 DevCon5 GmbH. All rights reserved.