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

Method GetValue

flag_impl.go:87–90  ·  flag_impl.go::V].GetValue

GetValue returns the flags value as string representation and an empty string if the flag takes no value at all.

()

Source from the content-addressed store, hash-verified

85// GetValue returns the flags value as string representation and an empty
86// string if the flag takes no value at all.
87func (f *FlagBase[T, C, V]) GetValue() string {
88 var v V
89 return v.ToString(f.Value)
90}
91
92// TypeName returns the type of the flag.
93func (f *FlagBase[T, C, V]) TypeName() string {

Callers

nothing calls this directly

Calls 1

ToStringMethod · 0.65

Tested by

no test coverage detected