Class OptionParser
java.lang.Object
org.jlab.utils.options.OptionParser
- Author:
- gavalian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidaddRequired(String key) voidaddRequired(String key, String desc) booleancontainsOptions(List<String> arguments, String... options) static Stringbooleanstatic voidstatic voidoverrideLogLevel(String level, String... classList) Set the log level of a list of classes to your preferred level.voidvoidvoidsetDescription(String desc) voidsetRequiresInputList(boolean flag) voidshow()voidsyncLogLevel(Logger externalLogger) Set the log level to be consistent with the level set by the user's-loption
-
Constructor Details
-
OptionParser
public OptionParser() -
OptionParser
-
-
Method Details
-
setDescription
-
setRequiresInputList
public void setRequiresInputList(boolean flag) -
addRequired
-
addRequired
-
addOption
-
addOption
-
hasOption
-
getOption
-
show
public void show() -
containsOptions
-
getUsageString
-
printUsage
public void printUsage() -
parse
-
getInputList
-
getVersion
-
getLogLevel
-
overrideLogLevel
-
syncLogLevel
Set the log level to be consistent with the level set by the user's-loption- Parameters:
externalLogger- an externalLoggerinstance, typically one owned by the owner of thisOptionParserinstance
-
main
-