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 e94b3ee

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 e94b3ee

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 によって変換されたページ (->オリジナル) /