Porting remainder of #796
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user