{"action":"created","issue":{"url":"https://api.github.com/repos/trevorld/optparse/issues/14","labels_url":"https://api.github.com/repos/trevorld/optparse/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/trevorld/optparse/issues/14/comments","events_url":"https://api.github.com/repos/trevorld/optparse/issues/14/events","html_url":"https://github.com/trevorld/optparse/issues/14","id":70461769,"number":14,"title":"option defaults can no longer have length zero","user":{"login":"tyner","id":3537845,"avatar_url":"https://avatars.githubusercontent.com/u/3537845?v=3","gravatar_id":"","url":"https://api.github.com/users/tyner","html_url":"https://github.com/tyner","followers_url":"https://api.github.com/users/tyner/followers","following_url":"https://api.github.com/users/tyner/following{/other_user}","gists_url":"https://api.github.com/users/tyner/gists{/gist_id}","starred_url":"https://api.github.com/users/tyner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tyner/subscriptions","organizations_url":"https://api.github.com/users/tyner/orgs","repos_url":"https://api.github.com/users/tyner/repos","events_url":"https://api.github.com/users/tyner/events{/privacy}","received_events_url":"https://api.github.com/users/tyner/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-23T17:02:47Z","updated_at":"2015-04-23T18:26:11Z","closed_at":"2015-04-23T18:23:27Z","body":"In version 1.0.2, option defaults were allowed to have length zero. But it seems in the latest version, this is not allowed, failing with:\r\n\r\n    Error in if (is.na(default)) { : argument is of length zero\r\n    Calls: parse_args -> print_help -> cat -> sub -> .as_string                \r\n    5: parse_args(opt.parser, positional_arguments = TRUE)                     \r\n    4: print_help(object)                                                      \r\n    3: cat(sub(\"%default\", .as_string(option@default), option@help))           \r\n    2: sub(\"%default\", .as_string(option@default), option@help)                \r\n    1: .as_string(option@default)\r\n\r\nany thoughts on whether support for option defaults having length zero could/should be restored?\r\n\r\nThanks\r\nBen"},"comment":{"url":"https://api.github.com/repos/trevorld/optparse/issues/comments/95677598","html_url":"https://github.com/trevorld/optparse/issues/14#issuecomment-95677598","issue_url":"https://api.github.com/repos/trevorld/optparse/issues/14","id":95677598,"user":{"login":"trevorld","id":2433259,"avatar_url":"https://avatars.githubusercontent.com/u/2433259?v=3","gravatar_id":"","url":"https://api.github.com/users/trevorld","html_url":"https://github.com/trevorld","followers_url":"https://api.github.com/users/trevorld/followers","following_url":"https://api.github.com/users/trevorld/following{/other_user}","gists_url":"https://api.github.com/users/trevorld/gists{/gist_id}","starred_url":"https://api.github.com/users/trevorld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevorld/subscriptions","organizations_url":"https://api.github.com/users/trevorld/orgs","repos_url":"https://api.github.com/users/trevorld/repos","events_url":"https://api.github.com/users/trevorld/events{/privacy}","received_events_url":"https://api.github.com/users/trevorld/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T18:26:11Z","updated_at":"2015-04-23T18:26:11Z","body":"Should be fixed in the development version now and a zero-length default argument now explicitly tested in the unit tests.\r\n"}}