cmdline v1.3.4 (2024-09-24T03:22:01Z)
Dub
Repo
Option.defaultVal
cmdline
option
Option
set the default value
true
, only for
BooleanOption
.
Self
defaultVal
()
class
Option
Self
defaultVal
(
)
Self
defaultVal
(T value)
Self
defaultVal
(T value, T[] rest)
Self
defaultVal
(T[] values)
Return Value
Type:
Self
Self
for chain call
Meta
Source
See Implementation
cmdline
option
Option
aliases
ImplyOptionMap
Self
constructors
this
functions
choices
choicesStr
cliVal
configVal
conflictOptStr
conflicts
defaultVal
defaultValStr
description
env
envVal
envValStr
hideHelp
implies
implyOptStr
implyVal
initialize
isFlag
isMerge
makeMandatory
matchFlag
merge
parser
preset
presetStr
processReducer
processor
rangeOf
rangeOfStr
typeStr
properties
attrName
envStr
get
isBoolean
isOptional
isRequired
isValid
name
variables
_description
_isMerge
conflictsWith
defaultValueDescription
envKey
flags
found
hidden
implyMap
innerBoolData
innerImplyData
isValueData
longFlag
mandatory
optional
required
settled
shortFlag
source
valueName
variadic
set the default value true, only for BooleanOption.