Package nz.org.riskscape.picocli
Class CommandLine.Model.ParserSpec
java.lang.Object
nz.org.riskscape.picocli.CommandLine.Model.ParserSpec
- Enclosing class:
- CommandLine.Model
Models parser configuration specification.
- Since:
- 3.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if options with attached arguments should not consume subsequent arguments and should not validate arity.aritySatisfiedByAttachedOptionParam
(boolean newValue) Returns true if options with attached arguments should not consume subsequent arguments and should not validate arity.atFileCommentChar
(Character atFileCommentChar) boolean
caseInsensitiveEnumValuesAllowed
(boolean caseInsensitiveEnumValuesAllowed) boolean
Returns true if exceptions during parsing should be collected instead of thrown.collectErrors
(boolean collectErrors) Sets whether exceptions during parsing should be collected instead of thrown.endOfOptionsDelimiter
(String delimiter) boolean
expandAtFiles
(boolean expandAtFiles) boolean
Returns true if arguments should be split first before any further processing and the number of parts resulting from the split is limited to the max arity of the argument.limitSplit
(boolean limitSplit) Sets whether arguments should be split first before any further processing.boolean
overwrittenOptionsAllowed
(boolean overwrittenOptionsAllowed) boolean
posixClusteredShortOptionsAllowed
(boolean posixClusteredShortOptionsAllowed) Returns the String to use as the separator between options and option parameters.Sets the String to use as the separator between options and option parameters.boolean
splitQuotedStrings
(boolean splitQuotedStrings) boolean
stopAtPositional
(boolean stopAtPositional) boolean
stopAtUnmatched
(boolean stopAtUnmatched) boolean
toggleBooleanFlags
(boolean toggleBooleanFlags) toString()
boolean
trimQuotes
(boolean trimQuotes) boolean
unmatchedArgumentsAllowed
(boolean unmatchedArgumentsAllowed) boolean
unmatchedOptionsArePositionalParams
(boolean unmatchedOptionsArePositionalParams) boolean
useSimplifiedAtFiles
(boolean useSimplifiedAtFiles)
-
Constructor Details
-
ParserSpec
public ParserSpec()
-
-
Method Details
-
separator
Returns the String to use as the separator between options and option parameters."="
by default, initialized fromCommandLine.Command.separator()
if defined. -
stopAtUnmatched
public boolean stopAtUnmatched()- See Also:
-
stopAtPositional
public boolean stopAtPositional()- See Also:
-
endOfOptionsDelimiter
- Since:
- 3.5
- See Also:
-
toggleBooleanFlags
public boolean toggleBooleanFlags()- See Also:
-
overwrittenOptionsAllowed
public boolean overwrittenOptionsAllowed() -
unmatchedArgumentsAllowed
public boolean unmatchedArgumentsAllowed() -
expandAtFiles
public boolean expandAtFiles()- See Also:
-
atFileCommentChar
- Since:
- 3.5
- See Also:
-
useSimplifiedAtFiles
public boolean useSimplifiedAtFiles()- Since:
- 3.9
- See Also:
-
posixClusteredShortOptionsAllowed
public boolean posixClusteredShortOptionsAllowed() -
caseInsensitiveEnumValuesAllowed
public boolean caseInsensitiveEnumValuesAllowed()- Since:
- 3.4
- See Also:
-
trimQuotes
public boolean trimQuotes()- Since:
- 3.7
- See Also:
-
splitQuotedStrings
public boolean splitQuotedStrings()- Since:
- 3.7
- See Also:
-
unmatchedOptionsArePositionalParams
public boolean unmatchedOptionsArePositionalParams() -
limitSplit
public boolean limitSplit()Returns true if arguments should be split first before any further processing and the number of parts resulting from the split is limited to the max arity of the argument. -
aritySatisfiedByAttachedOptionParam
public boolean aritySatisfiedByAttachedOptionParam()Returns true if options with attached arguments should not consume subsequent arguments and should not validate arity. The default isfalse
. -
collectErrors
public boolean collectErrors()Returns true if exceptions during parsing should be collected instead of thrown. Multiple errors may be encountered during parsing. These can be obtained fromCommandLine.ParseResult.errors()
.- Since:
- 3.2
-
separator
Sets the String to use as the separator between options and option parameters.- Returns:
- this ParserSpec for method chaining
-
stopAtUnmatched
- See Also:
-
stopAtPositional
- See Also:
-
endOfOptionsDelimiter
- Since:
- 3.5
- See Also:
-
toggleBooleanFlags
-
overwrittenOptionsAllowed
-
unmatchedArgumentsAllowed
-
expandAtFiles
- See Also:
-
atFileCommentChar
- Since:
- 3.5
- See Also:
-
useSimplifiedAtFiles
- Since:
- 3.9
- See Also:
-
posixClusteredShortOptionsAllowed
public CommandLine.Model.ParserSpec posixClusteredShortOptionsAllowed(boolean posixClusteredShortOptionsAllowed) -
caseInsensitiveEnumValuesAllowed
public CommandLine.Model.ParserSpec caseInsensitiveEnumValuesAllowed(boolean caseInsensitiveEnumValuesAllowed) - Since:
- 3.4
- See Also:
-
trimQuotes
- Since:
- 3.7
- See Also:
-
splitQuotedStrings
- Since:
- 3.7
- See Also:
-
unmatchedOptionsArePositionalParams
public CommandLine.Model.ParserSpec unmatchedOptionsArePositionalParams(boolean unmatchedOptionsArePositionalParams) -
collectErrors
Sets whether exceptions during parsing should be collected instead of thrown. Multiple errors may be encountered during parsing. These can be obtained fromCommandLine.ParseResult.errors()
.- Since:
- 3.2
-
aritySatisfiedByAttachedOptionParam
Returns true if options with attached arguments should not consume subsequent arguments and should not validate arity. The default isfalse
. -
limitSplit
Sets whether arguments should be split first before any further processing. If true, the original argument will only be split into as many parts as allowed by max arity. -
toString
-