Skip to content

Commit

Permalink
Merge pull request #1085 from Ace-Tang/fix_config_file
Browse files Browse the repository at this point in the history
bugfix: fix interface casting error
  • Loading branch information
Letty5411 authored Apr 11, 2018
2 parents b55ffff + 2977485 commit 204c39c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func getConflictConfigurations(flagSet *pflag.FlagSet, fileFlags map[string]inte
var conflictFlags []string
flagSet.Visit(func(f *pflag.Flag) {
if v, exist := fileFlags[f.Name]; exist {
conflictFlags = append(conflictFlags, fmt.Sprintf("from flag: %s and from config file: %s", f.Value.String(), v.(string)))
conflictFlags = append(conflictFlags, fmt.Sprintf("from flag: %s and from config file: %s", f.Value.String(), v))
}
})

Expand Down

0 comments on commit 204c39c

Please sign in to comment.