Module org.refcodes.cli
Package org.refcodes.cli
Interface ArgsParserMixin<B extends ArgsParserMixin<B>>
-
- All Known Subinterfaces:
ArgsParser
- All Known Implementing Classes:
ArgsParserImpl
public interface ArgsParserMixin<B extends ArgsParserMixin<B>>
This mixin provides builder additions (as of the builder pattern for chained configuring method calls) for parsing command line arguments.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description B
withEvalArgs(String[] aArgs)
Evaluates the provided command line arguments.default B
withEvalArgs(List<String> aArgs)
Evaluates the provided command line arguments .
-
-
-
Method Detail
-
withEvalArgs
B withEvalArgs(String[] aArgs) throws ArgsSyntaxException
Evaluates the provided command line arguments.- Parameters:
aArgs
- The command line arguments to be evaluated.- Returns:
- This instance as of the builder pattern to chain further method calls.
- Throws:
ArgsSyntaxException
- thrown in case of a command line arguments mismatch regarding provided and expected args.
-
withEvalArgs
default B withEvalArgs(List<String> aArgs) throws ArgsSyntaxException
Evaluates the provided command line arguments .- Parameters:
aArgs
- The command line arguments to be evaluated.- Returns:
- This instance as of the builder pattern to chain further method calls.
- Throws:
ArgsSyntaxException
- thrown in case of a command line arguments mismatch regarding provided and expected args.
-
-