{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/16469","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/16469/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/16469/comments","events_url":"https://api.github.com/repos/golang/go/issues/16469/events","html_url":"https://github.com/golang/go/issues/16469","id":167008296,"number":16469,"title":"flag: ContinueOnError is not continuing","user":{"login":"curlup","id":338607,"avatar_url":"https://avatars.githubusercontent.com/u/338607?v=3","gravatar_id":"","url":"https://api.github.com/users/curlup","html_url":"https://github.com/curlup","followers_url":"https://api.github.com/users/curlup/followers","following_url":"https://api.github.com/users/curlup/following{/other_user}","gists_url":"https://api.github.com/users/curlup/gists{/gist_id}","starred_url":"https://api.github.com/users/curlup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/curlup/subscriptions","organizations_url":"https://api.github.com/users/curlup/orgs","repos_url":"https://api.github.com/users/curlup/repos","events_url":"https://api.github.com/users/curlup/events{/privacy}","received_events_url":"https://api.github.com/users/curlup/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-22T09:41:14Z","updated_at":"2016-07-22T13:59:20Z","closed_at":"2016-07-22T13:59:20Z","body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n1. What version of Go are you using (`go version`)?\r\ngo1.4.2 linux/amd64\r\n\r\n2. What operating system and processor architecture are you using (`go env`)?\r\n```\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOCHAR=\"6\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"~/gocode\"\r\nGORACE=\"\"\r\nGOROOT=\"~/code/go\"\r\nGOTOOLDIR=\"~/code/go/pkg/tool/linux_amd64\"\r\nCC=\"gcc\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\n```\r\n\r\n3. What did you do?\r\n```\r\nfs := flag.NewFlagSet(\"d\", flag.ContinueOnError)\r\nboolPtr := fs.Bool(\"fork\", false, \"a bool\")\r\n_ = fs.Parse([]string{\"-unknown\", \"--fork\"})\r\n````\r\nhttps://play.golang.org/p/93DWNF-53z\r\n\r\n\r\n4. What did you expect to see?\r\n`fork: true` because `ContinueOnError` is used\r\n\r\n\r\n5. What did you see instead?\r\n```\r\nflag provided but not defined: -unknown\r\nUsage of d:\r\n  -fork\r\n    \ta bool\r\nfork: false\r\n```\r\nI didn't expect to see `Usage` though\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/234551219","html_url":"https://github.com/golang/go/issues/16469#issuecomment-234551219","issue_url":"https://api.github.com/repos/golang/go/issues/16469","id":234551219,"user":{"login":"ianlancetaylor","id":3194333,"avatar_url":"https://avatars.githubusercontent.com/u/3194333?v=3","gravatar_id":"","url":"https://api.github.com/users/ianlancetaylor","html_url":"https://github.com/ianlancetaylor","followers_url":"https://api.github.com/users/ianlancetaylor/followers","following_url":"https://api.github.com/users/ianlancetaylor/following{/other_user}","gists_url":"https://api.github.com/users/ianlancetaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/ianlancetaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianlancetaylor/subscriptions","organizations_url":"https://api.github.com/users/ianlancetaylor/orgs","repos_url":"https://api.github.com/users/ianlancetaylor/repos","events_url":"https://api.github.com/users/ianlancetaylor/events{/privacy}","received_events_url":"https://api.github.com/users/ianlancetaylor/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T13:59:20Z","updated_at":"2016-07-22T13:59:20Z","body":"I think this is working as intended.  Certainly we are not going to change the behavior.  If you have a specific suggestion for how to improve the docs, please let us know.  Closing."}}
{"actor":{"display_login":"ianlancetaylor"}}