{"action":"closed","issue":{"url":"https://api.github.com/repos/elastic/go-ucfg/issues/110","repository_url":"https://api.github.com/repos/elastic/go-ucfg","labels_url":"https://api.github.com/repos/elastic/go-ucfg/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/elastic/go-ucfg/issues/110/comments","events_url":"https://api.github.com/repos/elastic/go-ucfg/issues/110/events","html_url":"https://github.com/elastic/go-ucfg/issues/110","id":338613016,"node_id":"MDU6SXNzdWUzMzg2MTMwMTY=","number":110,"title":"Support optional flags","user":{"login":"jalvz","id":3432712,"node_id":"MDQ6VXNlcjM0MzI3MTI=","avatar_url":"https://avatars3.githubusercontent.com/u/3432712?v=4","gravatar_id":"","url":"https://api.github.com/users/jalvz","html_url":"https://github.com/jalvz","followers_url":"https://api.github.com/users/jalvz/followers","following_url":"https://api.github.com/users/jalvz/following{/other_user}","gists_url":"https://api.github.com/users/jalvz/gists{/gist_id}","starred_url":"https://api.github.com/users/jalvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalvz/subscriptions","organizations_url":"https://api.github.com/users/jalvz/orgs","repos_url":"https://api.github.com/users/jalvz/repos","events_url":"https://api.github.com/users/jalvz/events{/privacy}","received_events_url":"https://api.github.com/users/jalvz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-05T15:02:51Z","updated_at":"2018-07-06T12:04:42Z","closed_at":"2018-07-06T12:04:42Z","author_association":"NONE","body":"A typical use case is to pass environment variables from eg. an optional env variable from a Dockerfile, like:\r\n\r\n`./beat -e -E foo=bar`\r\n\r\nIf the env var is empty, `go-ucfg` doesn't validate `-E foo=` and returns a type conversion error. This means that we need scripts around our dockerfiles to handle optional variables before passing it to `go-ucfg`.\r\n\r\nFor this would be nice if `go-ucfg` just ignores flags with missing values.\r\n"}}
{"actor":{"display_login":"urso"}}