{"action":"created","issue":{"url":"https://api.github.com/repos/CLIUtils/CLI11/issues/175","repository_url":"https://api.github.com/repos/CLIUtils/CLI11","labels_url":"https://api.github.com/repos/CLIUtils/CLI11/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/CLIUtils/CLI11/issues/175/comments","events_url":"https://api.github.com/repos/CLIUtils/CLI11/issues/175/events","html_url":"https://github.com/CLIUtils/CLI11/issues/175","id":370993575,"node_id":"MDU6SXNzdWUzNzA5OTM1NzU=","number":175,"title":"Require both options or neither","user":{"login":"devhandle","id":42866057,"node_id":"MDQ6VXNlcjQyODY2MDU3","avatar_url":"https://avatars0.githubusercontent.com/u/42866057?v=4","gravatar_id":"","url":"https://api.github.com/users/devhandle","html_url":"https://github.com/devhandle","followers_url":"https://api.github.com/users/devhandle/followers","following_url":"https://api.github.com/users/devhandle/following{/other_user}","gists_url":"https://api.github.com/users/devhandle/gists{/gist_id}","starred_url":"https://api.github.com/users/devhandle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devhandle/subscriptions","organizations_url":"https://api.github.com/users/devhandle/orgs","repos_url":"https://api.github.com/users/devhandle/repos","events_url":"https://api.github.com/users/devhandle/events{/privacy}","received_events_url":"https://api.github.com/users/devhandle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-17T10:00:31Z","updated_at":"2018-10-17T10:50:22Z","closed_at":"2018-10-17T10:50:22Z","author_association":"NONE","body":"**QUESTION**\r\n\r\nHi,\r\n\r\nIs it possible to have two options which are dependent on each other being present? I'm using '_needs_' but I'm not able to reference _option_two_ because it hasn't been added yet. I'm see the error _\"Option --option_two is not defined\"_. \r\n\r\nThanks.\r\n\r\n```cpp\r\nCLI::App app{\"TEST\"};\r\napp.add_option(\"-o,--option_one\", optOne, \"optionOne\")->needs(\"--option_two\");\r\napp.add_option(\"-t,--option_two\", optTwo, \"optionTwo\")->needs(\"--option_one\");\r\nCLI11_PARSE(app, argc, argv);\r\n```"},"comment":{"url":"https://api.github.com/repos/CLIUtils/CLI11/issues/comments/430581836","html_url":"https://github.com/CLIUtils/CLI11/issues/175#issuecomment-430581836","issue_url":"https://api.github.com/repos/CLIUtils/CLI11/issues/175","id":430581836,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDU4MTgzNg==","user":{"login":"devhandle","id":42866057,"node_id":"MDQ6VXNlcjQyODY2MDU3","avatar_url":"https://avatars0.githubusercontent.com/u/42866057?v=4","gravatar_id":"","url":"https://api.github.com/users/devhandle","html_url":"https://github.com/devhandle","followers_url":"https://api.github.com/users/devhandle/followers","following_url":"https://api.github.com/users/devhandle/following{/other_user}","gists_url":"https://api.github.com/users/devhandle/gists{/gist_id}","starred_url":"https://api.github.com/users/devhandle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devhandle/subscriptions","organizations_url":"https://api.github.com/users/devhandle/orgs","repos_url":"https://api.github.com/users/devhandle/repos","events_url":"https://api.github.com/users/devhandle/events{/privacy}","received_events_url":"https://api.github.com/users/devhandle/received_events","type":"User","site_admin":false},"created_at":"2018-10-17T10:50:22Z","updated_at":"2018-10-17T10:50:22Z","author_association":"NONE","body":"Yes that works great. Thank you for the quick response."}}
{"actor":{"display_login":"devhandle"}}