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 java.lang.Object implements CommandLine.IDefaultValueProvider
-
-
Constructor Summary
Constructors Modifier Constructor Description private
NoDefaultProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
defaultValue(CommandLine.Model.ArgSpec argSpec)
Returns the default value for an option or positional parameter ornull
.
-
-
-
Method Detail
-
defaultValue
public java.lang.String defaultValue(CommandLine.Model.ArgSpec argSpec)
Description copied from interface:CommandLine.IDefaultValueProvider
Returns 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:
defaultValue
in interfaceCommandLine.IDefaultValueProvider
- Parameters:
argSpec
- the option or positional parameter, nevernull
- Returns:
- the default value for the option or positional parameter, or
null
if this provider has no default value for the specified option or positional parameter
-
-