Uses of Class
org.refcodes.cli.ArgsSyntaxException
-
Uses of ArgsSyntaxException in org.refcodes.cli
Modifier and TypeClassDescriptionclass
Thrown in case the command line arguments do not match the required syntax.class
Thrown in case the provided command line arguments do not respect the required semantics or cannot be converted to the required type.class
Thrown in case there were arguments found not being used (superfluous arguments).class
Thrown in case command line arguments were not processed (did not match the expected arguments), e.g. the arguments were rejected as them did not work for the according syntax.Modifier and TypeMethodDescriptionEvaluates the provided command line arguments and determines the according values by evaluating the rootCondition
.Evaluates the provided command line arguments, filtering (excluding) the arguments matching the providedPattern
.ArgsParser.evalArgs
(String[] aArgs, ArgsFilter aArgsFilter) Evaluates the provided command line arguments, filtering (excluding) the arguments matching the providedArgsFilter
.Same asArgsParser.evalArgs(String[])
with the difference that the elements representing the arguments are passed as a list instead of an array.Evaluates the provided command line arguments, filtering (excluding) the arguments matching the providedPattern
.ArgsParser.evalArgs
(List<String> aArgs, ArgsFilter aArgsFilter) Evaluates the provided command line arguments, filtering (excluding) the arguments matching the providedArgsFilter
.Evaluates the provided command line arguments and determines the according values by evaluating the rootCondition
.AbstractOperand.parseArgs
(String[] aArgs, String[] aOptions, CliContext aCliContext) Parses the provided command line arguments and determines the according values by evaluating thisConstituent
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childConstituent
instances'Constituent.parseArgs(String[], String[], CliContext)
methods.AbstractOption.parseArgs
(String[] aArgs, String[] aOptions, CliContext aCliCtx) Parses the provided command line arguments and determines the according values by evaluating thisConstituent
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childConstituent
instances'Constituent.parseArgs(String[], String[], CliContext)
methods.AllCondition.parseArgs
(String[] aArgs, String[] aOptions, CliContext aCliCtx) Parses the provided command line arguments and determines the according values by evaluating thisConstituent
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childConstituent
instances'Constituent.parseArgs(String[], String[], CliContext)
methods.AndCondition.parseArgs
(String[] aArgs, String[] aOptions, CliContext aCliCtx) Parses the provided command line arguments and determines the according values by evaluating thisConstituent
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childConstituent
instances'Constituent.parseArgs(String[], String[], CliContext)
methods.AnyCondition.parseArgs
(String[] aArgs, String[] aOptions, CliContext aCliCtx) Parses the provided command line arguments and determines the according values by evaluating thisConstituent
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childConstituent
instances'Constituent.parseArgs(String[], String[], CliContext)
methods.ArrayOperand.parseArgs
(String[] aArgs, String[] aOperands, CliContext aCliCtx) Parses the provided command line arguments and determines the according values by evaluating thisConstituent
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childConstituent
instances'Constituent.parseArgs(String[], String[], CliContext)
methods.Constituent.parseArgs
(String[] aArgs, String[] aOptions, CliContext aCliContext) Parses the provided command line arguments and determines the according values by evaluating thisConstituent
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childConstituent
instances'Constituent.parseArgs(String[], String[], CliContext)
methods.Constituent.parseArgs
(String[] aArgs, CliContext aCliCtx) Parses the provided command line arguments and determines the according values by evaluating thisConstituent
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childConstituent
instances'Constituent.parseArgs(String[], String[], CliContext)
methods.Flag.parseArgs
(String[] aArgs, String[] aOptions, CliContext aCliCtx) Parses the provided command line arguments and determines the according values by evaluating thisConstituent
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childConstituent
instances'Constituent.parseArgs(String[], String[], CliContext)
methods.NoneOperand.parseArgs
(String[] aArgs, String[] aOptions, CliContext aCliContext) Parses the provided command line arguments and determines the according values by evaluating thisConstituent
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childConstituent
instances'Constituent.parseArgs(String[], String[], CliContext)
methods.Operation.parseArgs
(String[] aArgs, String[] aOptions, CliContext aCliContext) Parses the provided command line arguments and determines the according values by evaluating thisConstituent
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childConstituent
instances'Constituent.parseArgs(String[], String[], CliContext)
methods.OrCondition.parseArgs
(String[] aArgs, String[] aOptions, CliContext aCliCtx) Parses the provided command line arguments and determines the according values by evaluating thisConstituent
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childConstituent
instances'Constituent.parseArgs(String[], String[], CliContext)
methods.XorCondition.parseArgs
(String[] aArgs, String[] aOptions, CliContext aCliCtx) Parses the provided command line arguments and determines the according values by evaluating thisConstituent
instance or, in case of being a node in the syntax tree (such as aCondition
, traversing the childConstituent
instances'Constituent.parseArgs(String[], String[], CliContext)
methods.default ArgsParser
ArgsParser.withEvalArgs
(String[] aArgs) Same asArgsParser.evalArgs(String[])
with the difference that this class's instance being invoked is returned as of the builder pattern.default ArgsParser
ArgsParser.withEvalArgs
(List<String> aArgs) Same asArgsParser.evalArgs(List)
with the difference that this class's instance being invoked is returned as of the builder pattern.ArgsParserMixin.withEvalArgs
(String[] aArgs) Evaluates the provided command line arguments.default B
ArgsParserMixin.withEvalArgs
(String[] aArgs, Pattern aFilterExp) Evaluates the provided command line arguments, filtering (excluding) the arguments matching the providedPattern
.default B
ArgsParserMixin.withEvalArgs
(String[] aArgs, ArgsFilter aArgsFilter) Evaluates the provided command line arguments, filtering (excluding) the arguments matching the providedArgsFilter
.default B
ArgsParserMixin.withEvalArgs
(List<String> aArgs) Evaluates the provided command line arguments .default B
ArgsParserMixin.withEvalArgs
(List<String> aArgs, Pattern aFilterExp) Evaluates the provided command line arguments, filtering (excluding) the arguments matching the providedPattern
.default B
ArgsParserMixin.withEvalArgs
(List<String> aArgs, ArgsFilter aArgsFilter) Evaluates the provided command line arguments, filtering (excluding) the arguments matching the providedArgsFilter
.