Skip to content

Commit

Permalink
Fixing ignorePatterns unmarshaling panic
Browse files Browse the repository at this point in the history
The `github.com/jessevdk/go-flags` package uses its own `Unmarshaler`
interface instead of `flag.Value`.
  • Loading branch information
yazgazan committed Apr 28, 2017
1 parent c459437 commit a0b08e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patterns.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (p ignorePatterns) String() string {
return strings.Join(ss, ",")
}

func (p *ignorePatterns) Set(s string) error {
func (p *ignorePatterns) UnmarshalFlag(s string) error {
pattern, err := glob.Compile(s)
if err != nil {
return err
Expand Down

0 comments on commit a0b08e9

Please # to comment.