Fix extra argument with multiple =

pull/376/head
galal-hussein 2019-04-19 01:59:37 +02:00
parent 4af06882b6
commit 72d2edc0cb
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ func (a ArgString) String() string {
func GetArgsList(argsMap map[string]string, extraArgs []string) []string {
// add extra args to args map to override any default option
for _, arg := range extraArgs {
splitArg := strings.Split(arg, "=")
splitArg := strings.SplitN(arg, "=", 2)
if len(splitArg) < 2 {
argsMap[splitArg[0]] = "true"
continue