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
Modifier and TypeMethodDescriptionwithEvalArgs
(String[] aArgs) Evaluates the provided command line arguments.default B
withEvalArgs
(List<String> aArgs) Evaluates the provided command line arguments .
-
Method Details
-
withEvalArgs
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
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.
-