Top Description Methods
com.beust.jcommander

public Interface IDefaultProvider

Known Direct Implementers
com.beust.jcommander.defaultprovider.EnvironmentVariableDefaultProvider, com.beust.jcommander.defaultprovider.PropertyFileDefaultProvider

Allows the specification of default values.
Author
cbeust

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the default value for this option.
getDefaultValueFor
(String
The name of the option as specified in the names() attribute of the @Parameter option (e.g. "-file").
optionName
)

Method Detail

getDefaultValueForback to summary
public String getDefaultValueFor(String optionName)
Parameters
optionName:String

The name of the option as specified in the names() attribute of the @Parameter option (e.g. "-file").

Returns:String

the default value for this option.