Porting remainder of #796

This commit is contained in:
2022-04-22 15:00:43 -04:00
parent 44958693a1
commit 75e4ee69e9
18 changed files with 112 additions and 12 deletions

View File

@@ -19,6 +19,7 @@ type StringFlag struct {
DefaultText string
Destination *string
HasBeenSet bool
Category string
}
// IsSet returns whether or not the flag has been set through env or file
@@ -52,6 +53,11 @@ func (f *StringFlag) GetUsage() string {
return f.Usage
}
// GetCategory returns the category for the flag
func (f *StringFlag) GetCategory() string {
return f.Category
}
// GetValue returns the flags value as string representation and an empty
// string if the flag takes no value at all.
func (f *StringFlag) GetValue() string {