Reformatted

This commit is contained in:
tsarpaul 2017-11-18 11:25:37 +02:00 committed by Péter Szilágyi
parent ce45110a8e
commit 642612cb9f
No known key found for this signature in database
GPG key ID: E9AE538CEDF8293D

View file

@ -938,16 +938,16 @@ func checkExclusive(ctx *cli.Context, args ...interface{}) {
if len(args) > i+1 { if len(args) > i+1 {
switch option := args[i+1].(type) { switch option := args[i+1].(type) {
case cli.Flag: case cli.Flag:
set = append(set, `"--` + flag.GetName() + `"`) set = append(set, `"--`+flag.GetName()+`"`)
case string: case string:
if ctx.GlobalString(flag.GetName()) == option { if ctx.GlobalString(flag.GetName()) == option {
set = append(set, `"--` + flag.GetName() + ` ` + option + `"`) set = append(set, `"--`+flag.GetName()+` `+option+`"`)
} }
default: default:
Fatalf("Received wrong type in checkExclusive") Fatalf("Received wrong type in checkExclusive")
} }
} else { } else {
set = append(set, `"--` + flag.GetName() + `"`) set = append(set, `"--`+flag.GetName()+`"`)
} }
} }
} }