|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectOptions
public class Options
Parsing of command line options
| Field Summary | |
|---|---|
static java.util.Map<java.lang.String,java.lang.String> |
allowedSO
|
static boolean |
glosses
|
private static java.lang.String |
moreHelp
|
static boolean |
offset
|
static boolean |
overview
|
static java.util.List<java.lang.String> |
searchOptions
|
static java.lang.String |
searchstr
|
static java.util.regex.Pattern |
soRE
|
private static java.lang.String |
usageStr
display of usage of the program with the list of possible command line arguments |
| Constructor Summary | |
|---|---|
Options()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Some simple unit tests of the functions of this class |
protected static void |
parseArgs(java.lang.String s)
Simulate programs arguments from a single string... |
protected static void |
parseArgs(java.lang.String[] args)
Parse program arguments and set appropriate options will stop on -h : prints usage of the program |
private static void |
usage()
Prints a short help about the use of the program called with the -h program argument |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String searchstr
public static boolean glosses
public static boolean offset
public static boolean overview
public static java.util.List<java.lang.String> searchOptions
public static java.util.Map<java.lang.String,java.lang.String> allowedSO
public static java.util.regex.Pattern soRE
private static java.lang.String usageStr
private static java.lang.String moreHelp
| Constructor Detail |
|---|
public Options()
| Method Detail |
|---|
protected static void parseArgs(java.lang.String s)
s - protected static void parseArgs(java.lang.String[] args)
args - String array as given to the main programprivate static void usage()
public static void main(java.lang.String[] args)
args -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||