Skip to content

Commit 0f82574

Browse files
committed
enhance comment describing what the function does
1 parent 88d89c5 commit 0f82574

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cli/arguments/reference.go

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ func ParseReferences(args []string) ([]*Reference, error) {
5656
}
5757

5858
// ParseReference parses a string and returns a Reference object.
59+
// It tries to infer the platform the user is asking for.
60+
// To achieve that, it tries to use github.com/arduino/arduino-cli/commands/core.GetPlatform
61+
// Note that the Reference is returned rightaway if the arg inserted by the user mathes perfectly one in the response of core.GetPlatform
62+
// A MultiplePlatformsError is returned if the platform searched by the user matches multiple platforms
5963
func ParseReference(arg string) (*Reference, error) {
6064
logrus.Infof("Parsing reference %s", arg)
6165
ret := &Reference{}

0 commit comments

Comments
 (0)