Package picocli
Class CommandLine.NoDefaultProvider
java.lang.Object
picocli.CommandLine.NoDefaultProvider
- All Implemented Interfaces:
CommandLine.IDefaultValueProvider
- Enclosing class:
CommandLine
private static class CommandLine.NoDefaultProvider
extends Object
implements CommandLine.IDefaultValueProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefaultValue(CommandLine.Model.ArgSpec argSpec) Returns the default value for an option or positional parameter ornull.
-
Constructor Details
-
NoDefaultProvider
private NoDefaultProvider()
-
-
Method Details
-
defaultValue
Description copied from interface:CommandLine.IDefaultValueProviderReturns the default value for an option or positional parameter ornull. The returned value is converted to the type of the option/positional parameter via the same type converter used when populating this option/positional parameter from a command line argument.- Specified by:
defaultValuein interfaceCommandLine.IDefaultValueProvider- Parameters:
argSpec- the option or positional parameter, nevernull- Returns:
- the default value for the option or positional parameter, or
nullif this provider has no default value for the specified option or positional parameter
-