Skip to content

Commit bbf7051

Browse files
authored
Merge pull request #277 from facchinm/fix_comma_folder
Remove composite paths support from foldersFlag
2 parents 12ad32f + e94b3ee commit bbf7051

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

Diff for: arduino-builder/main.go

+2-13
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,8 @@ func (h *foldersFlag) String() string {
9696
return fmt.Sprint(*h)
9797
}
9898

99-
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-
}
111-
99+
func (h *foldersFlag) Set(folder string) error {
100+
*h = append(*h, folder)
112101
return nil
113102
}
114103

0 commit comments

Comments
 (0)