|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelix.graph.util.CommandLine
public class CommandLine
Constructor Summary | |
---|---|
CommandLine(String[] args)
constructor |
Method Summary | |
---|---|
thirdparty.ostermiller.util.CmdLnOption |
addOption(String longName,
Character shortName)
add option |
static String |
boolToString(boolean b)
helper function to parse arguments values boolean -> String "on" "off" |
thirdparty.ostermiller.util.CmdLn |
getCommand()
get internal com.Ostermiller.util.CmdLn |
List<String> |
getNonOptionArguments()
get remaining arguments after all options have been removed |
thirdparty.ostermiller.util.CmdLnOption |
getOption(String longName)
get registered option |
String |
getUsage()
get usage description |
boolean |
isSetByUser(String name)
tell if option has been set by user |
void |
parse()
parse command line |
void |
set_help(List<String> args)
default stub for help invocation |
void |
setUsage(String usage)
set usage description |
static boolean |
stringToBool(String s)
|
static int |
stringToInt(String s,
int infiniteValue)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandLine(String[] args)
Method Detail |
---|
public void setUsage(String usage)
public String getUsage()
public thirdparty.ostermiller.util.CmdLn getCommand()
public thirdparty.ostermiller.util.CmdLnOption addOption(String longName, Character shortName)
public thirdparty.ostermiller.util.CmdLnOption getOption(String longName)
public void parse() throws CommandLineException
CommandLineException
public List<String> getNonOptionArguments()
public boolean isSetByUser(String name)
public void set_help(List<String> args)
public static String boolToString(boolean b)
public static boolean stringToBool(String s)
public static int stringToInt(String s, int infiniteValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |