Skip to content

Commit d66e34f

Browse files
committed
Remove composite paths support from foldersFlag
Fixes #276 The only supported way to append multiple hardware/tools folders becomes specifying the same flag multiple times (which is the de-facto standard, since the Java IDE only uses this format)
1 parent 5fd49b6 commit d66e34f

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

Diff for: arduino-builder/main.go

+2-11
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,8 @@ func (h *foldersFlag) String() string {
9797
}
9898

9999
func (h *foldersFlag) Set(csv string) error {
100-
var values []string
101-
if strings.Contains(csv, string(os.PathListSeparator)) {
102-
values = strings.Split(csv, string(os.PathListSeparator))
103-
} else {
104-
values = strings.Split(csv, ",")
105-
}
106-
107-
for _, value := range values {
108-
value = strings.TrimSpace(value)
109-
*h = append(*h, value)
110-
}
100+
csv = strings.TrimSpace(csv)
101+
*h = append(*h, csv)
111102

112103
return nil
113104
}

0 commit comments

Comments
 (0)