Class SbkYalParameters
java.lang.Object
io.sbk.params.impl.SbkInputOptions
io.sbk.params.impl.SbkYalParameters
- All Implemented Interfaces:
InputOptions, ParsedOptions, ParseInputOptions, YalParameters
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSbkYalParameters(String name, String desc, YalConfig config) Create a YAML parameters handler. -
Method Summary
Modifier and TypeMethodDescriptionfinal StringGet the configured YAML file name.Build description text for the-fileoption including the default path.Build description text for the-printoption.voidParse arguments and updateYalConfig.yamlFileNameto reflect any override from CLI.Methods inherited from class SbkInputOptions
addOption, getHelpText, getOptionValue, getOptionValue, hasOption, hasOptionValueMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ParsedOptions
printHelp
-
Field Details
-
config
-
-
Constructor Details
-
SbkYalParameters
-
-
Method Details
-
getFileOptionDescription
Build description text for the-fileoption including the default path.- Returns:
- user-facing description for the file option
-
getFileName
Description copied from interface:YalParametersGet the configured YAML file name.- Specified by:
getFileNamein interfaceYalParameters- Returns:
- path or name of the YAML file to read
-
getPrintOptionDescription
Build description text for the-printoption.- Returns:
- user-facing description for the print option
-
parseArgs
public void parseArgs(String[] args) throws org.apache.commons.cli.ParseException, IllegalArgumentException, HelpException Parse arguments and updateYalConfig.yamlFileNameto reflect any override from CLI.- Specified by:
parseArgsin interfaceParseInputOptions- Overrides:
parseArgsin classSbkInputOptions- Parameters:
args- list of command line arguments.- Throws:
org.apache.commons.cli.ParseException- If an exception occurred.IllegalArgumentException- If an exception occurred.HelpException- If the 'help' option is supplied.
-