ArgsParser
ArgsParserImpl
public interface ArgsParserMixin<B extends ArgsParserMixin<B>>
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 .
|
B withEvalArgs(String[] aArgs) throws UnknownArgsException, AmbiguousArgsException, SuperfluousArgsException, ParseArgsException
aArgs
- The command line arguments to be evaluated.UnknownArgsException
- Thrown in case not one command line argument
matched regarding the provided args vs. the expected args.AmbiguousArgsException
- Thrown in case at least one command line
argument is ambiguous regarding expected args vs. provided args.SuperfluousArgsException
- Thrown in case there were arguments
found not being used (superfluous arguments).ParseArgsException
- Thrown in case the provided command line
arguments do not respect the required syntax or cannot be
converted to the required typedefault B withEvalArgs(List<String> aArgs) throws UnknownArgsException, AmbiguousArgsException, SuperfluousArgsException, ParseArgsException
aArgs
- The command line arguments to be evaluated.UnknownArgsException
- Thrown in case not one command line argument
matched regarding the provided args vs. the expected args.AmbiguousArgsException
- Thrown in case at least one command line
argument is ambiguous regarding expected args vs. provided args.SuperfluousArgsException
- Thrown in case there were arguments
found not being used (superfluous arguments).ParseArgsException
- Thrown in case the provided command line
arguments do not respect the required syntax or cannot be
converted to the required typeCopyright © 2021. All rights reserved.