public class JCLO extends Object
| Constructor and Description |
|---|
JCLO(Object object)
A constructor that takes the Object that contains the variables
acceptable on a command line.
|
JCLO(Object object,
String[][] aliases)
A constructor that takes the Object that contains the variables
acceptable on a command line.
|
JCLO(String prefix,
Object object)
A constructor that takes the Object that contains the variables
acceptable on a command line.
|
JCLO(String prefix,
Object object,
String[][] aliases)
A constructor that takes an Object, a prefix, and a boolean that
specifies whether to accept single or double dashes; call parse
(String) to do the actual parsing.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
void |
parse(String[] args)
Parse a command line.
|
String |
toString()
An external representation of the object
|
String |
usage()
Create and usage message for the acceptable command line variables.
|
public JCLO(Object object)
object - where the variables/arguments arepublic JCLO(Object object, String[][] aliases)
object - where the variables/arguments arealiases - if there are CLO aliasespublic JCLO(String prefix, Object object)
object - where the variables/arguments areprefix - if all CLO variables start with a prefixpublic JCLO(String prefix, Object object, String[][] aliases)
object - where the variables/arguments areprefix - the String CLO's start with, if anyaliases - if there are CLO aliasespublic String toString()
public String usage()
public void parse(String[] args)
args - the arguments to be parsedpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2017. All rights reserved.