Package org.rossonet.ext.picocli
Class CommandLine.Model.ParserSpec
- java.lang.Object
-
- org.rossonet.ext.picocli.CommandLine.Model.ParserSpec
-
- Enclosing class:
- CommandLine.Model
public static class CommandLine.Model.ParserSpec extends java.lang.ObjectModels parser configuration specification.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description ParserSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanabbreviatedOptionsAllowed()CommandLine.Model.ParserSpecabbreviatedOptionsAllowed(boolean abbreviatedOptionsAllowed)booleanabbreviatedSubcommandsAllowed()CommandLine.Model.ParserSpecabbreviatedSubcommandsAllowed(boolean abbreviatedSubcommandsAllowed)booleanallowOptionsAsOptionParameters()CommandLine.Model.ParserSpecallowOptionsAsOptionParameters(boolean allowOptionsAsOptionParameters)booleanallowSubcommandsAsOptionParameters()CommandLine.Model.ParserSpecallowSubcommandsAsOptionParameters(boolean allowSubcommandsAsOptionParameters)booleanaritySatisfiedByAttachedOptionParam()Returns true if options with attached arguments should not consume subsequent arguments and should not validate arity.CommandLine.Model.ParserSpecaritySatisfiedByAttachedOptionParam(boolean newValue)Returns true if options with attached arguments should not consume subsequent arguments and should not validate arity.java.lang.CharacteratFileCommentChar()CommandLine.Model.ParserSpecatFileCommentChar(java.lang.Character atFileCommentChar)booleancaseInsensitiveEnumValuesAllowed()CommandLine.Model.ParserSpeccaseInsensitiveEnumValuesAllowed(boolean caseInsensitiveEnumValuesAllowed)booleancollectErrors()Returns true if exceptions during parsing should be collected instead of thrown.CommandLine.Model.ParserSpeccollectErrors(boolean collectErrors)Sets whether exceptions during parsing should be collected instead of thrown.java.lang.StringendOfOptionsDelimiter()CommandLine.Model.ParserSpecendOfOptionsDelimiter(java.lang.String delimiter)booleanexpandAtFiles()CommandLine.Model.ParserSpecexpandAtFiles(boolean expandAtFiles)booleanlimitSplit()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.CommandLine.Model.ParserSpeclimitSplit(boolean limitSplit)Sets whether arguments should be split first before any further processing.booleanoverwrittenOptionsAllowed()CommandLine.Model.ParserSpecoverwrittenOptionsAllowed(boolean overwrittenOptionsAllowed)booleanposixClusteredShortOptionsAllowed()CommandLine.Model.ParserSpecposixClusteredShortOptionsAllowed(boolean posixClusteredShortOptionsAllowed)java.lang.Stringseparator()Returns the String to use as the separator between options and option parameters.CommandLine.Model.ParserSpecseparator(java.lang.String separator)Sets the String to use as the separator between options and option parameters.booleansplitQuotedStrings()CommandLine.Model.ParserSpecsplitQuotedStrings(boolean splitQuotedStrings)booleanstopAtPositional()CommandLine.Model.ParserSpecstopAtPositional(boolean stopAtPositional)booleanstopAtUnmatched()CommandLine.Model.ParserSpecstopAtUnmatched(boolean stopAtUnmatched)booleantoggleBooleanFlags()CommandLine.Model.ParserSpectoggleBooleanFlags(boolean toggleBooleanFlags)java.lang.StringtoString()booleantrimQuotes()CommandLine.Model.ParserSpectrimQuotes(boolean trimQuotes)booleanunmatchedArgumentsAllowed()CommandLine.Model.ParserSpecunmatchedArgumentsAllowed(boolean unmatchedArgumentsAllowed)booleanunmatchedOptionsAllowedAsOptionParameters()CommandLine.Model.ParserSpecunmatchedOptionsAllowedAsOptionParameters(boolean unmatchedOptionsAllowedAsOptionParameters)booleanunmatchedOptionsArePositionalParams()CommandLine.Model.ParserSpecunmatchedOptionsArePositionalParams(boolean unmatchedOptionsArePositionalParams)booleanuseSimplifiedAtFiles()CommandLine.Model.ParserSpecuseSimplifiedAtFiles(boolean useSimplifiedAtFiles)
-
-
-
Method Detail
-
abbreviatedOptionsAllowed
public boolean abbreviatedOptionsAllowed()
-
abbreviatedOptionsAllowed
public CommandLine.Model.ParserSpec abbreviatedOptionsAllowed(boolean abbreviatedOptionsAllowed)
-
abbreviatedSubcommandsAllowed
public boolean abbreviatedSubcommandsAllowed()
-
abbreviatedSubcommandsAllowed
public CommandLine.Model.ParserSpec abbreviatedSubcommandsAllowed(boolean abbreviatedSubcommandsAllowed)
-
allowOptionsAsOptionParameters
public boolean allowOptionsAsOptionParameters()
- Since:
- 4.7.6-SNAPSHOT
- See Also:
CommandLine.isAllowOptionsAsOptionParameters()
-
allowOptionsAsOptionParameters
public CommandLine.Model.ParserSpec allowOptionsAsOptionParameters(boolean allowOptionsAsOptionParameters)
- Since:
- 4.7.6-SNAPSHOT
- See Also:
CommandLine.setAllowOptionsAsOptionParameters(boolean)
-
allowSubcommandsAsOptionParameters
public boolean allowSubcommandsAsOptionParameters()
- Since:
- 4.7.6-SNAPSHOT
- See Also:
CommandLine.isAllowSubcommandsAsOptionParameters()
-
allowSubcommandsAsOptionParameters
public CommandLine.Model.ParserSpec allowSubcommandsAsOptionParameters(boolean allowSubcommandsAsOptionParameters)
- Since:
- 4.7.6-SNAPSHOT
- See Also:
CommandLine.setAllowSubcommandsAsOptionParameters(boolean)
-
aritySatisfiedByAttachedOptionParam
public boolean aritySatisfiedByAttachedOptionParam()
Returns true if options with attached arguments should not consume subsequent arguments and should not validate arity. The default isfalse.
-
aritySatisfiedByAttachedOptionParam
public CommandLine.Model.ParserSpec aritySatisfiedByAttachedOptionParam(boolean newValue)
Returns true if options with attached arguments should not consume subsequent arguments and should not validate arity. The default isfalse.
-
atFileCommentChar
public java.lang.Character atFileCommentChar()
- Since:
- 3.5
- See Also:
CommandLine.getAtFileCommentChar()
-
atFileCommentChar
public CommandLine.Model.ParserSpec atFileCommentChar(java.lang.Character atFileCommentChar)
- Since:
- 3.5
- See Also:
CommandLine.setAtFileCommentChar(Character)
-
caseInsensitiveEnumValuesAllowed
public boolean caseInsensitiveEnumValuesAllowed()
- Since:
- 3.4
- See Also:
CommandLine.isCaseInsensitiveEnumValuesAllowed()
-
caseInsensitiveEnumValuesAllowed
public CommandLine.Model.ParserSpec caseInsensitiveEnumValuesAllowed(boolean caseInsensitiveEnumValuesAllowed)
- Since:
- 3.4
- See Also:
CommandLine.setCaseInsensitiveEnumValuesAllowed(boolean)
-
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
-
collectErrors
public CommandLine.Model.ParserSpec collectErrors(boolean 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
-
endOfOptionsDelimiter
public java.lang.String endOfOptionsDelimiter()
- Since:
- 3.5
- See Also:
CommandLine.getEndOfOptionsDelimiter()
-
endOfOptionsDelimiter
public CommandLine.Model.ParserSpec endOfOptionsDelimiter(java.lang.String delimiter)
- Since:
- 3.5
- See Also:
CommandLine.setEndOfOptionsDelimiter(String)
-
expandAtFiles
public boolean expandAtFiles()
- See Also:
CommandLine.isExpandAtFiles()
-
expandAtFiles
public CommandLine.Model.ParserSpec expandAtFiles(boolean expandAtFiles)
- See Also:
CommandLine.setExpandAtFiles(boolean)
-
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.
-
limitSplit
public CommandLine.Model.ParserSpec limitSplit(boolean 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.
-
overwrittenOptionsAllowed
public boolean overwrittenOptionsAllowed()
-
overwrittenOptionsAllowed
public CommandLine.Model.ParserSpec overwrittenOptionsAllowed(boolean overwrittenOptionsAllowed)
-
posixClusteredShortOptionsAllowed
public boolean posixClusteredShortOptionsAllowed()
-
posixClusteredShortOptionsAllowed
public CommandLine.Model.ParserSpec posixClusteredShortOptionsAllowed(boolean posixClusteredShortOptionsAllowed)
-
separator
public java.lang.String separator()
Returns the String to use as the separator between options and option parameters."="by default, initialized fromCommandLine.Command.separator()if defined.
-
separator
public CommandLine.Model.ParserSpec separator(java.lang.String separator)
Sets the String to use as the separator between options and option parameters.- Returns:
- this ParserSpec for method chaining
-
splitQuotedStrings
public boolean splitQuotedStrings()
- Since:
- 3.7
- See Also:
CommandLine.isSplitQuotedStrings()
-
splitQuotedStrings
public CommandLine.Model.ParserSpec splitQuotedStrings(boolean splitQuotedStrings)
- Since:
- 3.7
- See Also:
CommandLine.setSplitQuotedStrings(boolean)
-
stopAtPositional
public boolean stopAtPositional()
- See Also:
CommandLine.isStopAtPositional()
-
stopAtPositional
public CommandLine.Model.ParserSpec stopAtPositional(boolean stopAtPositional)
- See Also:
CommandLine.setStopAtPositional(boolean)
-
stopAtUnmatched
public boolean stopAtUnmatched()
- See Also:
CommandLine.isStopAtUnmatched()
-
stopAtUnmatched
public CommandLine.Model.ParserSpec stopAtUnmatched(boolean stopAtUnmatched)
- See Also:
CommandLine.setStopAtUnmatched(boolean)
-
toggleBooleanFlags
public boolean toggleBooleanFlags()
- See Also:
CommandLine.isToggleBooleanFlags()
-
toggleBooleanFlags
public CommandLine.Model.ParserSpec toggleBooleanFlags(boolean toggleBooleanFlags)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
trimQuotes
public boolean trimQuotes()
- Since:
- 3.7
- See Also:
CommandLine.isTrimQuotes()
-
trimQuotes
public CommandLine.Model.ParserSpec trimQuotes(boolean trimQuotes)
- Since:
- 3.7
- See Also:
CommandLine.setTrimQuotes(boolean)
-
unmatchedArgumentsAllowed
public boolean unmatchedArgumentsAllowed()
-
unmatchedArgumentsAllowed
public CommandLine.Model.ParserSpec unmatchedArgumentsAllowed(boolean unmatchedArgumentsAllowed)
-
unmatchedOptionsAllowedAsOptionParameters
public boolean unmatchedOptionsAllowedAsOptionParameters()
- Since:
- 4.4
- See Also:
CommandLine.isUnmatchedOptionsAllowedAsOptionParameters()
-
unmatchedOptionsAllowedAsOptionParameters
public CommandLine.Model.ParserSpec unmatchedOptionsAllowedAsOptionParameters(boolean unmatchedOptionsAllowedAsOptionParameters)
- Since:
- 4.4
- See Also:
CommandLine.setUnmatchedOptionsAllowedAsOptionParameters(boolean)
-
unmatchedOptionsArePositionalParams
public boolean unmatchedOptionsArePositionalParams()
-
unmatchedOptionsArePositionalParams
public CommandLine.Model.ParserSpec unmatchedOptionsArePositionalParams(boolean unmatchedOptionsArePositionalParams)
-
useSimplifiedAtFiles
public boolean useSimplifiedAtFiles()
- Since:
- 3.9
- See Also:
CommandLine.isUseSimplifiedAtFiles()
-
useSimplifiedAtFiles
public CommandLine.Model.ParserSpec useSimplifiedAtFiles(boolean useSimplifiedAtFiles)
- Since:
- 3.9
- See Also:
CommandLine.setUseSimplifiedAtFiles(boolean)
-
-