Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flag: Document that FlagSet.Arg(int) and Arg(int) returns empty string if arg doesn't exist #11664

Closed
srinathh opened this issue Jul 11, 2015 · 2 comments

Comments

@srinathh
Copy link
Contributor

I thought it wasn't obvious these functions should return empty string rather than have some other behavior like panic (as would happen when trying to access a non-existent member of os.Args[])

@gopherbot
Copy link

CL https://golang.org/cl/12061 mentions this issue.

@srinathh
Copy link
Contributor Author

I sent a tiny documentation change for this in https://go-review.googlesource.com/12061 - thought i'd take a shot at it to get a hang of how the contribution process works :-)

@mikioh mikioh modified the milestones: Go1.5, Go1.5Maybe Jul 12, 2015
@golang golang locked and limited conversation to collaborators Jul 11, 2016
@rsc rsc unassigned robpike Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants