Skip to content

Commit

Permalink
Use space to separate env variables instead of ;
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi Yerra committed Feb 25, 2015
1 parent dc0cce8 commit 90f3bd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ func init() {
flag.StringVar(&password, "p", "", "The password of the machines")
flag.StringVar(&hostnames, "h", "", "The hosts separated by a comma. Ex. host1,host2,host3")
flag.StringVar(&keyfile, "k", "", "The public key to connect to the servers with")
flag.StringVar(&envstr, "e", "", "Environment variables separate by semicolon. Ex. FOO=bar;BAR=foo")
flag.StringVar(&envstr, "e", "", "Environment variables separate by space. Ex. FOO=bar BAR=foo")
}

func main() {
flag.Parse()

hosts = strings.Split(hostnames, ",")
if envstr != "" {
envs = strings.Split(envstr, ";")
envs = strings.Split(envstr, " ")
}

switch {
Expand Down

0 comments on commit 90f3bd9

Please sign in to comment.