Skip to content

Commit

Permalink
[option] Requires group name to be url friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyanliu authored and Jack47 committed Dec 29, 2017
1 parent 3cb79fc commit efa2adc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/option/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ func init() {
}

clusterHost := flag.String("cluster_host", "localhost", "specify cluster listen host")
clusterGroup := flag.String("group", "default", "specify cluster group name")
clusterGroup := new(string)
flag.Var(common.NewStringRegexValue("default", clusterGroup, common.URL_FRIENDLY_CHARACTERS_REGEX), "group",
"specify cluster group name")
memberMode := flag.String("mode", "read", "specify member mode (read or write)")
memberName := new(string)
flag.Var(common.NewStringRegexValue(hostName, memberName, common.URL_FRIENDLY_CHARACTERS_REGEX), "name",
Expand Down

0 comments on commit efa2adc

Please sign in to comment.