public class ArgumentWithListValue extends ArgumentWithValue
initialState
access, cantAppearAfter, exclusive, fullName, index, requiredPreceding, shortName
Constructor and Description |
---|
ArgumentWithListValue(CommandHandlerWithArguments handler,
CommandLineCompleter completer,
String fullName) |
ArgumentWithListValue(CommandHandlerWithArguments handler,
String fullName) |
Modifier and Type | Method and Description |
---|---|
String |
getValue(ParsedCommandLine args,
boolean required)
Returns the value of the argument specified on the command line.
|
getOriginalValue, getResolvedValue, getValueCompleter, getValueConverter, initParsingState, isValueComplete, isValueRequired, resolveValue, resolveValue, toModelNode
addCantAppearAfter, addRequiredPreceding, canAppearNext, getFullName, getIndex, getShortName, getValue, isPresent, setAccessRequirement, setExclusive
public ArgumentWithListValue(CommandHandlerWithArguments handler, String fullName)
public ArgumentWithListValue(CommandHandlerWithArguments handler, CommandLineCompleter completer, String fullName)
public String getValue(ParsedCommandLine args, boolean required) throws CommandFormatException
CommandArgument
getValue
in interface CommandArgument
getValue
in class ArgumentWithValue
args
- parsed arguments.required
- whether the value for this argument is required.CommandFormatException
Copyright © 2023 JBoss by Red Hat. All rights reserved.