GetValue returns the flags value as string representation and an empty string if the flag takes no value at all.
()
| 85 | // GetValue returns the flags value as string representation and an empty |
| 86 | // string if the flag takes no value at all. |
| 87 | func (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. |
| 93 | func (f *FlagBase[T, C, V]) TypeName() string { |