public class MultiParser extends CommandLineParser
CommandLineParser.Command, CommandLineParser.ConfigBuilder| Constructor and Description |
|---|
MultiParser(Map<String,CommandLineParser.ConfigBuilder> mapping)
Constructor for a
CommandLineParser |
| Modifier and Type | Method and Description |
|---|---|
protected CommandLineParser.ConfigBuilder |
getConfigBuilder(String firstParam)
Method that must be implemented retrieving the correct configBuilder given first argument
|
String |
help() |
parsepublic MultiParser(Map<String,CommandLineParser.ConfigBuilder> mapping)
CommandLineParsermapping - a map between modes and configbuilders.protected CommandLineParser.ConfigBuilder getConfigBuilder(String firstParam) throws NoSuchBuilderException
CommandLineParsergetConfigBuilder in class CommandLineParserfirstParam - first argument from commandlineCommandLineParser.ConfigBuilder to be used in parsingNoSuchBuilderException - when no CommandLineParser.ConfigBuilder is foundpublic String help()
help in class CommandLineParserCopyright © 2020. All rights reserved.