Fix(issue #631). Remove reflect calls for Hidden field
This commit is contained in:
committed by
Naveen Gogineni
parent
13ded1e7c4
commit
df595c0d85
@@ -113,6 +113,11 @@ func (f *TimestampFlag) GetValue() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// IsVisible returns true if the flag is not hidden, otherwise false
|
||||
func (f *TimestampFlag) IsVisible() bool {
|
||||
return !f.Hidden
|
||||
}
|
||||
|
||||
// Apply populates the flag given the flag set and environment
|
||||
func (f *TimestampFlag) Apply(set *flag.FlagSet) error {
|
||||
if f.Layout == "" {
|
||||
|
Reference in New Issue
Block a user