Skip to content

Commit

Permalink
expose isSet
Browse files Browse the repository at this point in the history
  • Loading branch information
mattes committed Mar 26, 2015
1 parent 5e11878 commit 3c2a20f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions option.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,8 @@ func (option *Option) String() string {
func (option *Option) Value() interface{} {
return option.value.Interface()
}

// IsSet returns true if option has been set
func (option *Option) IsSet() bool {
return option.isSet
}

0 comments on commit 3c2a20f

Please sign in to comment.