// parseArgs is a helper to parse the passed --args value.
parseArgs is a helper to parse the passed --args value.
// parseArgs is a helper to parse the passed -- args value .
func parseArgs(kvs []string) (map[string]string, error) {
	args := map[string]string{}
	for _, s := range kvs {
		parsed := strings.Split(s, "=")
		if len(parsed) != 2 {
			return nil, fmt.Errorf("arg value must be in key=value format")
		}
		args[parsed[0]] = parsed[1]
	}
	return args, nil
}
func parseArgs ( kvs [ ] string ) ( map [ string ] string , error ) { args := map [ string ] string { } for _ , s := range kvs { parsed := strings . Split ( s , " " ) if len ( parsed ) != 2 { return nil , fmt . Errorf ( " " ) } args [ parsed [ 0 ] ] = parsed [ 1 ] } return args , nil }
parseArgs is a helper to parse the passed --args value.
parseArgs is a helper to parse the passed -- args value .