{"action":"opened","issue":{"url":"https://api.github.com/repos/voxelbrain/goptions/issues/21","repository_url":"https://api.github.com/repos/voxelbrain/goptions","labels_url":"https://api.github.com/repos/voxelbrain/goptions/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/voxelbrain/goptions/issues/21/comments","events_url":"https://api.github.com/repos/voxelbrain/goptions/issues/21/events","html_url":"https://github.com/voxelbrain/goptions/issues/21","id":151961261,"number":21,"title":"os.File type of option for output","user":{"login":"suntong","id":422244,"avatar_url":"https://avatars.githubusercontent.com/u/422244?v=3","gravatar_id":"","url":"https://api.github.com/users/suntong","html_url":"https://github.com/suntong","followers_url":"https://api.github.com/users/suntong/followers","following_url":"https://api.github.com/users/suntong/following{/other_user}","gists_url":"https://api.github.com/users/suntong/gists{/gist_id}","starred_url":"https://api.github.com/users/suntong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suntong/subscriptions","organizations_url":"https://api.github.com/users/suntong/orgs","repos_url":"https://api.github.com/users/suntong/repos","events_url":"https://api.github.com/users/suntong/events{/privacy}","received_events_url":"https://api.github.com/users/suntong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-29T20:25:24Z","updated_at":"2016-04-29T20:25:24Z","closed_at":null,"body":"I have the following in option in my file:\r\n\r\n\t\tFileo *os.File `goptions:\"-o, --output, description='The dump output', wronly\"`\r\n\r\nAnd my main begins with:\r\n\r\n    func main() {\r\n\tgoptions.ParseAndFail(&options)\r\n\r\nHowerver, when I invoke my program with \r\n\r\n    my_program -o /tmp/out \r\n\r\nIt errors out, with the following message:\r\n\r\n    Error: open /tmp/out: no such file or directory\r\n    Usage: ....\r\n\r\nI think for `wronly` option, that is meant solely for output, the package should create the file instead of error out. \r\n\r\n"}}