{"action":"opened","issue":{"url":"https://api.github.com/repos/docopt/docopt.rs/issues/142","labels_url":"https://api.github.com/repos/docopt/docopt.rs/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/docopt/docopt.rs/issues/142/comments","events_url":"https://api.github.com/repos/docopt/docopt.rs/issues/142/events","html_url":"https://github.com/docopt/docopt.rs/issues/142","id":109997190,"number":142,"title":"make Optional flag handling consistent","user":{"login":"BurntSushi","id":456674,"avatar_url":"https://avatars.githubusercontent.com/u/456674?v=3","gravatar_id":"","url":"https://api.github.com/users/BurntSushi","html_url":"https://github.com/BurntSushi","followers_url":"https://api.github.com/users/BurntSushi/followers","following_url":"https://api.github.com/users/BurntSushi/following{/other_user}","gists_url":"https://api.github.com/users/BurntSushi/gists{/gist_id}","starred_url":"https://api.github.com/users/BurntSushi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BurntSushi/subscriptions","organizations_url":"https://api.github.com/users/BurntSushi/orgs","repos_url":"https://api.github.com/users/BurntSushi/repos","events_url":"https://api.github.com/users/BurntSushi/events{/privacy}","received_events_url":"https://api.github.com/users/BurntSushi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-06T12:26:35Z","updated_at":"2015-10-06T12:26:35Z","closed_at":null,"body":"Reported by @SuperFluffy https://github.com/docopt/docopt.rs/issues/128#issuecomment-145840791\r\n\r\n> It is only necessary for `f64` but not for, say, `u64`. In fact, I have the following struct where both flags are optional, just that I need to wrap the `f64` in an `Option<>`, which is not necessary for `u64`.\r\n\r\n> ````\r\nstruct Args {\r\n    flag_foo: Option<f64>,\r\n    flag_bar: u64,\r\n}\r\n````\r\n\r\n> I'd prefer if there was some consistency in this by either not having to wrap the `f64` or having to wrap the other primitives as well.\r\n"}}