{"action":"opened","issue":{"url":"https://api.github.com/repos/kbknapp/clap-rs/issues/721","repository_url":"https://api.github.com/repos/kbknapp/clap-rs","labels_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/721/labels{/name}","comments_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/721/comments","events_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/721/events","html_url":"https://github.com/kbknapp/clap-rs/issues/721","id":186286567,"number":721,"title":"Cannot generate completion if user passes flag","user":{"login":"matthiasbeyer","id":427866,"avatar_url":"https://avatars.githubusercontent.com/u/427866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthiasbeyer","html_url":"https://github.com/matthiasbeyer","followers_url":"https://api.github.com/users/matthiasbeyer/followers","following_url":"https://api.github.com/users/matthiasbeyer/following{/other_user}","gists_url":"https://api.github.com/users/matthiasbeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthiasbeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthiasbeyer/subscriptions","organizations_url":"https://api.github.com/users/matthiasbeyer/orgs","repos_url":"https://api.github.com/users/matthiasbeyer/repos","events_url":"https://api.github.com/users/matthiasbeyer/events{/privacy}","received_events_url":"https://api.github.com/users/matthiasbeyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-31T13:44:44Z","updated_at":"2016-10-31T13:44:44Z","closed_at":null,"body":"The following case cannot be implemented (without using `App::clone()`) with clap, or am I missing something?\r\n\r\n```rust\r\napp = get_app();\r\nif app.get_matches().is_present(\"generate-completion\") {\r\n    app.gen_completions() /* ... */\r\n}\r\n```\r\n\r\nas `get_matches()` is consuming. Is there another way besides `clone()`?"}}
{"actor":{"display_login":"matthiasbeyer"}}