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 3514008

Browse files
committed
enhance comment describing what the function does
1 parent 38700f8 commit 3514008

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎cli/arguments/reference.go‎

Lines changed: 4 additions & 0 deletions
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)

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