public static class CommandLine.Model.ParserSpec extends Object
Constructor and Description |
---|
ParserSpec() |
Modifier and Type | Method and Description |
---|---|
boolean |
abbreviatedOptionsAllowed() |
CommandLine.Model.ParserSpec |
abbreviatedOptionsAllowed(boolean abbreviatedOptionsAllowed) |
boolean |
abbreviatedSubcommandsAllowed() |
CommandLine.Model.ParserSpec |
abbreviatedSubcommandsAllowed(boolean abbreviatedSubcommandsAllowed) |
boolean |
allowOptionsAsOptionParameters() |
CommandLine.Model.ParserSpec |
allowOptionsAsOptionParameters(boolean allowOptionsAsOptionParameters) |
boolean |
allowSubcommandsAsOptionParameters() |
CommandLine.Model.ParserSpec |
allowSubcommandsAsOptionParameters(boolean allowSubcommandsAsOptionParameters) |
boolean |
aritySatisfiedByAttachedOptionParam()
Returns true if options with attached arguments should not consume subsequent arguments and should not validate arity.
|
CommandLine.Model.ParserSpec |
aritySatisfiedByAttachedOptionParam(boolean newValue)
Returns true if options with attached arguments should not consume subsequent arguments and should not validate arity.
|
Character |
atFileCommentChar() |
CommandLine.Model.ParserSpec |
atFileCommentChar(Character atFileCommentChar) |
boolean |
caseInsensitiveEnumValuesAllowed() |
CommandLine.Model.ParserSpec |
caseInsensitiveEnumValuesAllowed(boolean caseInsensitiveEnumValuesAllowed) |
boolean |
collectErrors()
Returns true if exceptions during parsing should be collected instead of thrown.
|
CommandLine.Model.ParserSpec |
collectErrors(boolean collectErrors)
Sets whether exceptions during parsing should be collected instead of thrown.
|
String |
endOfOptionsDelimiter() |
CommandLine.Model.ParserSpec |
endOfOptionsDelimiter(String delimiter) |
boolean |
expandAtFiles() |
CommandLine.Model.ParserSpec |
expandAtFiles(boolean expandAtFiles) |
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.
|
CommandLine.Model.ParserSpec |
limitSplit(boolean limitSplit)
Sets whether arguments should be split first before any further processing.
|
boolean |
overwrittenOptionsAllowed() |
CommandLine.Model.ParserSpec |
overwrittenOptionsAllowed(boolean overwrittenOptionsAllowed) |
boolean |
posixClusteredShortOptionsAllowed() |
CommandLine.Model.ParserSpec |
posixClusteredShortOptionsAllowed(boolean posixClusteredShortOptionsAllowed) |
String |
separator()
Returns the String to use as the separator between options and option parameters.
|
CommandLine.Model.ParserSpec |
separator(String separator)
Sets the String to use as the separator between options and option parameters.
|
boolean |
splitQuotedStrings() |
CommandLine.Model.ParserSpec |
splitQuotedStrings(boolean splitQuotedStrings) |
boolean |
stopAtPositional() |
CommandLine.Model.ParserSpec |
stopAtPositional(boolean stopAtPositional) |
boolean |
stopAtUnmatched() |
CommandLine.Model.ParserSpec |
stopAtUnmatched(boolean stopAtUnmatched) |
boolean |
toggleBooleanFlags() |
CommandLine.Model.ParserSpec |
toggleBooleanFlags(boolean toggleBooleanFlags) |
String |
toString() |
boolean |
trimQuotes() |
CommandLine.Model.ParserSpec |
trimQuotes(boolean trimQuotes) |
boolean |
unmatchedArgumentsAllowed() |
CommandLine.Model.ParserSpec |
unmatchedArgumentsAllowed(boolean unmatchedArgumentsAllowed) |
boolean |
unmatchedOptionsAllowedAsOptionParameters() |
CommandLine.Model.ParserSpec |
unmatchedOptionsAllowedAsOptionParameters(boolean unmatchedOptionsAllowedAsOptionParameters) |
boolean |
unmatchedOptionsArePositionalParams() |
CommandLine.Model.ParserSpec |
unmatchedOptionsArePositionalParams(boolean unmatchedOptionsArePositionalParams) |
boolean |
useSimplifiedAtFiles() |
CommandLine.Model.ParserSpec |
useSimplifiedAtFiles(boolean useSimplifiedAtFiles) |
public String separator()
"="
by default,
initialized from CommandLine.Command.separator()
if defined.public boolean stopAtUnmatched()
CommandLine.isStopAtUnmatched()
public boolean stopAtPositional()
CommandLine.isStopAtPositional()
public String endOfOptionsDelimiter()
CommandLine.getEndOfOptionsDelimiter()
public boolean toggleBooleanFlags()
CommandLine.isToggleBooleanFlags()
public boolean overwrittenOptionsAllowed()
public boolean unmatchedArgumentsAllowed()
public boolean abbreviatedSubcommandsAllowed()
public boolean abbreviatedOptionsAllowed()
public boolean expandAtFiles()
CommandLine.isExpandAtFiles()
public Character atFileCommentChar()
CommandLine.getAtFileCommentChar()
public boolean useSimplifiedAtFiles()
CommandLine.isUseSimplifiedAtFiles()
public boolean posixClusteredShortOptionsAllowed()
public boolean caseInsensitiveEnumValuesAllowed()
CommandLine.isCaseInsensitiveEnumValuesAllowed()
public boolean trimQuotes()
CommandLine.isTrimQuotes()
public boolean splitQuotedStrings()
CommandLine.isSplitQuotedStrings()
public boolean unmatchedOptionsArePositionalParams()
public boolean unmatchedOptionsAllowedAsOptionParameters()
CommandLine.isUnmatchedOptionsAllowedAsOptionParameters()
public boolean allowSubcommandsAsOptionParameters()
CommandLine.isAllowSubcommandsAsOptionParameters()
public boolean allowOptionsAsOptionParameters()
CommandLine.isAllowOptionsAsOptionParameters()
public boolean limitSplit()
public boolean aritySatisfiedByAttachedOptionParam()
false
.public boolean collectErrors()
CommandLine.ParseResult.errors()
.public CommandLine.Model.ParserSpec separator(String separator)
public CommandLine.Model.ParserSpec stopAtUnmatched(boolean stopAtUnmatched)
CommandLine.setStopAtUnmatched(boolean)
public CommandLine.Model.ParserSpec stopAtPositional(boolean stopAtPositional)
CommandLine.setStopAtPositional(boolean)
public CommandLine.Model.ParserSpec endOfOptionsDelimiter(String delimiter)
CommandLine.setEndOfOptionsDelimiter(String)
public CommandLine.Model.ParserSpec toggleBooleanFlags(boolean toggleBooleanFlags)
public CommandLine.Model.ParserSpec overwrittenOptionsAllowed(boolean overwrittenOptionsAllowed)
public CommandLine.Model.ParserSpec unmatchedArgumentsAllowed(boolean unmatchedArgumentsAllowed)
public CommandLine.Model.ParserSpec abbreviatedSubcommandsAllowed(boolean abbreviatedSubcommandsAllowed)
public CommandLine.Model.ParserSpec abbreviatedOptionsAllowed(boolean abbreviatedOptionsAllowed)
public CommandLine.Model.ParserSpec expandAtFiles(boolean expandAtFiles)
CommandLine.setExpandAtFiles(boolean)
public CommandLine.Model.ParserSpec atFileCommentChar(Character atFileCommentChar)
CommandLine.setAtFileCommentChar(Character)
public CommandLine.Model.ParserSpec useSimplifiedAtFiles(boolean useSimplifiedAtFiles)
CommandLine.setUseSimplifiedAtFiles(boolean)
public CommandLine.Model.ParserSpec posixClusteredShortOptionsAllowed(boolean posixClusteredShortOptionsAllowed)
public CommandLine.Model.ParserSpec caseInsensitiveEnumValuesAllowed(boolean caseInsensitiveEnumValuesAllowed)
CommandLine.setCaseInsensitiveEnumValuesAllowed(boolean)
public CommandLine.Model.ParserSpec trimQuotes(boolean trimQuotes)
CommandLine.setTrimQuotes(boolean)
public CommandLine.Model.ParserSpec splitQuotedStrings(boolean splitQuotedStrings)
CommandLine.setSplitQuotedStrings(boolean)
public CommandLine.Model.ParserSpec unmatchedOptionsAllowedAsOptionParameters(boolean unmatchedOptionsAllowedAsOptionParameters)
CommandLine.setUnmatchedOptionsAllowedAsOptionParameters(boolean)
public CommandLine.Model.ParserSpec unmatchedOptionsArePositionalParams(boolean unmatchedOptionsArePositionalParams)
public CommandLine.Model.ParserSpec allowSubcommandsAsOptionParameters(boolean allowSubcommandsAsOptionParameters)
CommandLine.setAllowSubcommandsAsOptionParameters(boolean)
public CommandLine.Model.ParserSpec allowOptionsAsOptionParameters(boolean allowOptionsAsOptionParameters)
CommandLine.setAllowOptionsAsOptionParameters(boolean)
public CommandLine.Model.ParserSpec collectErrors(boolean collectErrors)
CommandLine.ParseResult.errors()
.public CommandLine.Model.ParserSpec aritySatisfiedByAttachedOptionParam(boolean newValue)
false
.public CommandLine.Model.ParserSpec limitSplit(boolean limitSplit)