{"action":"closed","issue":{"url":"https://api.github.com/repos/alecthomas/kingpin/issues/47","labels_url":"https://api.github.com/repos/alecthomas/kingpin/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/alecthomas/kingpin/issues/47/comments","events_url":"https://api.github.com/repos/alecthomas/kingpin/issues/47/events","html_url":"https://github.com/alecthomas/kingpin/issues/47","id":87392117,"number":47,"title":"Problem with actions ","user":{"login":"szank","id":773802,"avatar_url":"https://avatars.githubusercontent.com/u/773802?v=3","gravatar_id":"","url":"https://api.github.com/users/szank","html_url":"https://github.com/szank","followers_url":"https://api.github.com/users/szank/followers","following_url":"https://api.github.com/users/szank/following{/other_user}","gists_url":"https://api.github.com/users/szank/gists{/gist_id}","starred_url":"https://api.github.com/users/szank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/szank/subscriptions","organizations_url":"https://api.github.com/users/szank/orgs","repos_url":"https://api.github.com/users/szank/repos","events_url":"https://api.github.com/users/szank/events{/privacy}","received_events_url":"https://api.github.com/users/szank/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-11T15:51:46Z","updated_at":"2015-06-11T23:55:42Z","closed_at":"2015-06-11T23:55:42Z","body":"Hi, this is a simple program that doesn't seem to work as intended : \r\nI have checked out v2.0.8 tag \r\n```go\r\npackage main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\t\"os\"\r\n\r\n\t\"gopkg.in/alecthomas/kingpin.v2\"\r\n)\r\n\r\nfunc main() {\r\n\tapp := kingpin.New(\"test\", \"testApp\").Action(action).PreAction(preAction).Terminate(terminate)\r\n\r\n\tfmt.Println(app.Parse(os.Args[1:]))\r\n\r\n}\r\n\r\nfunc action(c *kingpin.ParseContext) error {\r\n\tfmt.Println(\"ACTION\")\r\n\treturn nil\r\n}\r\n\r\nfunc preAction(c *kingpin.ParseContext) error {\r\n\tfmt.Println(\"PRE ACTION\")\r\n\treturn nil\r\n}\r\n\r\nfunc terminate(code int) {\r\n\tfmt.Println(\"TERMINATE\")\r\n\tos.Exit(code)\r\n}\r\n```\r\n\r\nreturns\r\n```sh\r\nACTION\r\nACTION\r\n <nil>\r\n```"}}