diff options
Diffstat (limited to 'err.go')
-rw-r--r-- | err.go | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +package opts + +import "fmt" + +type ErrBadOption rune + +func (e ErrBadOption) Error() string { + return fmt.Sprintf("unknown option ā%cā", e) +} + +type ErrNoArgument rune + +func (e ErrNoArgument) Error() string { + return fmt.Sprintf("expected argument for option ā%cā", e) +} |