{"action":"opened","issue":{"url":"https://api.github.com/repos/tucnak/climax/issues/1","labels_url":"https://api.github.com/repos/tucnak/climax/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/tucnak/climax/issues/1/comments","events_url":"https://api.github.com/repos/tucnak/climax/issues/1/events","html_url":"https://github.com/tucnak/climax/issues/1","id":116121203,"number":1,"title":"If I try to use a flag oin CLI that is not defined, gets a panic","user":{"login":"lstep","id":2028,"avatar_url":"https://avatars.githubusercontent.com/u/2028?v=3","gravatar_id":"","url":"https://api.github.com/users/lstep","html_url":"https://github.com/lstep","followers_url":"https://api.github.com/users/lstep/followers","following_url":"https://api.github.com/users/lstep/following{/other_user}","gists_url":"https://api.github.com/users/lstep/gists{/gist_id}","starred_url":"https://api.github.com/users/lstep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lstep/subscriptions","organizations_url":"https://api.github.com/users/lstep/orgs","repos_url":"https://api.github.com/users/lstep/repos","events_url":"https://api.github.com/users/lstep/events{/privacy}","received_events_url":"https://api.github.com/users/lstep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-10T14:49:52Z","updated_at":"2015-11-10T14:49:52Z","closed_at":null,"body":"If try tu run a small minimal app with climax, that doesn't have 't' flag defined, I get a panic:\r\n\r\n```\r\n # ./stellar-stacy serve -t=3\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x40 pc=0x4814b6]\r\n\r\ngoroutine 1 [running]:\r\ngithub.com/tucnak/climax.parseContext(0xc8200a0410, 0x1, 0x1, 0xc82007e260, 0x1, 0x1, 0x1, 0x0, 0x0)\r\n\t/home/foo/go/src/github.com/tucnak/climax/context.go:97 +0x496\r\ngithub.com/tucnak/climax.Application.Run(0x78c890, 0x6, 0x7c1b80, 0x10, 0x821350, 0x13, 0xc8200ba180, 0x1, 0x1, 0x0, ...)\r\n\t/home/foo/go/src/github.com/tucnak/climax/application.go:117 +0xa19\r\nmain.main()\r\n\t/home/foo/go/src/myserver/myroot/stellar-stacy/main.go:21 +0x173\r\n```\r\n\r\nWhen launching it with a flag that **exists**, it works fine. The `climax.Command` structure I used is the one defined on the main github page."}}