{"action":"created","issue":{"url":"https://api.github.com/repos/kbknapp/clap-rs/issues/329","labels_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/329/comments","events_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/329/events","html_url":"https://github.com/kbknapp/clap-rs/issues/329","id":113943590,"number":329,"title":"Versionless subcommand setting does not take effect","user":{"login":"jimmycuadra","id":122457,"avatar_url":"https://avatars.githubusercontent.com/u/122457?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmycuadra","html_url":"https://github.com/jimmycuadra","followers_url":"https://api.github.com/users/jimmycuadra/followers","following_url":"https://api.github.com/users/jimmycuadra/following{/other_user}","gists_url":"https://api.github.com/users/jimmycuadra/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmycuadra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmycuadra/subscriptions","organizations_url":"https://api.github.com/users/jimmycuadra/orgs","repos_url":"https://api.github.com/users/jimmycuadra/repos","events_url":"https://api.github.com/users/jimmycuadra/events{/privacy}","received_events_url":"https://api.github.com/users/jimmycuadra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kbknapp/clap-rs/labels/C:%20app","name":"C: app","color":"fad8c7"},{"url":"https://api.github.com/repos/kbknapp/clap-rs/labels/D:%20easy","name":"D: easy","color":"d4c5f9"},{"url":"https://api.github.com/repos/kbknapp/clap-rs/labels/P3:%20want%20to%20have","name":"P3: want to have","color":"bfe5bf"},{"url":"https://api.github.com/repos/kbknapp/clap-rs/labels/T:%20enhancement","name":"T: enhancement","color":"bfd4f2"},{"url":"https://api.github.com/repos/kbknapp/clap-rs/labels/W:%201.x","name":"W: 1.x","color":"bfdadc"}],"state":"closed","locked":false,"assignee":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/kbknapp/clap-rs/milestones/11","html_url":"https://github.com/kbknapp/clap-rs/milestones/1.4.6","labels_url":"https://api.github.com/repos/kbknapp/clap-rs/milestones/11/labels","id":1341173,"number":11,"title":"1.4.6","description":"","creator":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":6,"state":"open","created_at":"2015-10-06T19:26:03Z","updated_at":"2015-10-29T09:28:38Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-10-28T22:57:31Z","updated_at":"2015-10-29T09:41:49Z","closed_at":"2015-10-29T09:28:38Z","body":"`AppSetting::VersionlessSubCommands` doesn't seem to disable the `-V`/`--version` options on subcommands as the docs describe:\r\n\r\n``` rust\r\nextern crate clap;\r\n\r\nuse clap::{App, AppSettings, SubCommand};\r\n\r\nfn main() {\r\n    let matches = App::new(\"example\")\r\n        .setting(AppSettings::VersionlessSubcommands)\r\n        .version(env!(\"CARGO_PKG_VERSION\"))\r\n        .subcommand(\r\n            SubCommand::with_name(\"sub\")\r\n        )\r\n        .get_matches();\r\n}\r\n```\r\n\r\nExample executions:\r\n\r\n```\r\n$ prog -V\r\nprog 0.1.0\r\n$ prog sub -V\r\nprog-sub\r\n$ prog sub -h\r\nprog-sub\r\n\r\nUSAGE:\r\n\tprog sub [FLAGS]\r\n\r\nFLAGS:\r\n    -h, --help       Prints help information\r\n    -V, --version    Prints version information\r\n```\r\n\r\nUsing clap 1.4.5 and Rust 1.3 on OS X."},"comment":{"url":"https://api.github.com/repos/kbknapp/clap-rs/issues/comments/152128847","html_url":"https://github.com/kbknapp/clap-rs/issues/329#issuecomment-152128847","issue_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/329","id":152128847,"user":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T09:41:49Z","updated_at":"2015-10-29T09:41:49Z","body":"[v1.4.6](https://crates.io/crates/clap) is out on crates.io"}}