adjust custom-error related interface, struct and methods to reflect change in RequiredFlag interface

This commit is contained in:
Aaron Berns
2019-08-20 15:39:18 -04:00
parent eb1734ba59
commit 52a016034a
3 changed files with 30 additions and 43 deletions

View File

@@ -83,14 +83,13 @@ type RequiredFlag interface {
IsRequired() bool
}
// RequiredFlagsErr is an interface that allows users to redefine errors on required flags
// RequiredFlagErr is an interface that allows users to redefine errors on required flags
// it allows flags with user-defined errors to be backwards compatible with the Flag interface
type RequiredFlagErr interface {
Flag
IsCustom() bool
GetMessage() string
HasInterpolation() bool
}
// DocGenerationFlag is an interface that allows documentation generation for the flag