Interface CLODelegate
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringIf settings for option are not known upon initialization, an up-to-date description is requested when needed (e.g.default intOptional: position of key in the list of arguments.default booleanparse(boolean isSet) Parse stringargand set configurable parameters that correspond to this command line option.default booleanParse stringargand set configurable parameters that correspond to this command line option.default booleanParse stringargand set configurable parameters that correspond to this command line option.
-
Method Details
-
parse
default boolean parse(boolean isSet) Parse stringargand set configurable parameters that correspond to this command line option. The delegate for options withArgument.NONEmust implement this method.Note: returning
falsetriggers a warning about which command line option failed to correctly parse. If the parser can rectify the issue on the spot this is also acceptable. In that case the method should returntrueand possibly log the fact that parameters have been adjusted.- Parameters:
isSet-trueif option was set on command line- Returns:
trueif parsing successful
-
parse
Parse stringargand set configurable parameters that correspond to this command line option. The delegate for options withArgument.REQUIREDmust implement this method.Note: returning
falsetriggers a warning about which command line option failed to correctly parse. If the parser can rectify the issue on the spot this is also acceptable. In that case the method should returntrueand possibly log the fact that parameters have been adjusted.- Parameters:
arg- the argument for parsing by command line option- Returns:
trueif parsing successful
-
parse
Parse stringargand set configurable parameters that correspond to this command line option. The delegate for options withArgument.OPTIONALmust implement this method.Note: returning
falsetriggers a warning about which command line option failed to correctly parse. If the parser can rectify the issue on the spot this is also acceptable. In that case the method should returntrueand possibly log the fact that parameters have been adjusted.- Parameters:
arg- the argument for parsing by command line optionisSet-trueif arg is set on commandline- Returns:
trueif parsing successful
-
getDescription
If settings for option are not known upon initialization, an up-to-date description is requested when needed (e.g. if help is requested, typically using--helpoption).Note: the description string may contain any UTF-8 characters as well as HTML character entities. If necessary they will be escaped and converted to UTF-8 for display in XML documents.
- Returns:
- description of command line option.
-
getKeyPos
default int getKeyPos()Optional: position of key in the list of arguments. Used in help display.- Returns:
- the position of the key
-