MCPcopy
hub / github.com/urfave/cli / GetDefaultText

Method GetDefaultText

flag_bool_with_inverse.go:221–226  ·  flag_bool_with_inverse.go::BoolWithInverseFlag.GetDefaultText

GetDefaultText returns the default text for this flag

()

Source from the content-addressed store, hash-verified

219
220// GetDefaultText returns the default text for this flag
221func (bif *BoolWithInverseFlag) GetDefaultText() string {
222 if bif.Required {
223 return bif.DefaultText
224 }
225 return boolValue{}.ToString(bif.Value)
226}
227
228// GetCategory returns the category of the flag
229func (bif *BoolWithInverseFlag) GetCategory() string {

Callers

nothing calls this directly

Calls 1

ToStringMethod · 0.65

Tested by

no test coverage detected