You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ go run example.go arg -size
2, 0
$ go run example.go.go -name arg -size
flag needs an argument: -size
Usage of /tmp/go-build476191376/b001/exe/example:
-name string
volume name
-size string
volume size
exit status 2
$ go run example.go.go -name -size arg -size
2, 1
The output of the second command is a little confusing, I think. What about if a user really expects -size is a normal argument?
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
What did you see instead?
The output of the second command is a little confusing, I think. What about if a user really expects
-size
is a normal argument?The text was updated successfully, but these errors were encountered: