Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bbf7051

Browse files
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

‎arduino-builder/main.go‎

Lines changed: 2 additions & 13 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /