Skip to content

Commit

Permalink
Use PrefixSeparator
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSLevy committed Mar 5, 2020
1 parent 72a7cd1 commit 1008425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func BindWithPrefix(flg FlagSet, v interface{}, prefix string) error {
}
if prefix != "" && !strings.HasSuffix(prefix, "-") &&
!strings.HasSuffix(prefix, ".") {
prefix += "-"
prefix += PrefixSeparator
}
if err := BindWithPrefix(flg, fieldV.Interface(),
prefix); err != nil {
Expand Down

0 comments on commit 1008425

Please sign in to comment.