{"action":"created","issue":{"url":"https://api.github.com/repos/TeXitoi/structopt/issues/82","repository_url":"https://api.github.com/repos/TeXitoi/structopt","labels_url":"https://api.github.com/repos/TeXitoi/structopt/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/TeXitoi/structopt/issues/82/comments","events_url":"https://api.github.com/repos/TeXitoi/structopt/issues/82/events","html_url":"https://github.com/TeXitoi/structopt/issues/82","id":305142372,"number":82,"title":"Include example of `main` in docs","user":{"login":"luser","id":286001,"avatar_url":"https://avatars1.githubusercontent.com/u/286001?v=4","gravatar_id":"","url":"https://api.github.com/users/luser","html_url":"https://github.com/luser","followers_url":"https://api.github.com/users/luser/followers","following_url":"https://api.github.com/users/luser/following{/other_user}","gists_url":"https://api.github.com/users/luser/gists{/gist_id}","starred_url":"https://api.github.com/users/luser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luser/subscriptions","organizations_url":"https://api.github.com/users/luser/orgs","repos_url":"https://api.github.com/users/luser/repos","events_url":"https://api.github.com/users/luser/events{/privacy}","received_events_url":"https://api.github.com/users/luser/received_events","type":"User","site_admin":false},"labels":[{"id":681307660,"url":"https://api.github.com/repos/TeXitoi/structopt/labels/doc","name":"doc","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-14T12:42:20Z","updated_at":"2018-03-15T11:12:58Z","closed_at":"2018-03-15T10:15:27Z","author_association":"NONE","body":"I'm looking at using structopt for the first time and I was reading the docs on docs.rs. I noticed that they don't seem to include an example of actually parsing the commandline into the args struct, though! Looking at the example in the README does include this, which makes things much clearer:\r\n```rust\r\nfn main() {\r\n    let opt = Opt::from_args();\r\n    println!(\"{:?}\", opt);\r\n}\r\n```\r\n\r\nI think the example in the crate-level docs should include this as well!"},"comment":{"url":"https://api.github.com/repos/TeXitoi/structopt/issues/comments/373341377","html_url":"https://github.com/TeXitoi/structopt/issues/82#issuecomment-373341377","issue_url":"https://api.github.com/repos/TeXitoi/structopt/issues/82","id":373341377,"user":{"login":"luser","id":286001,"avatar_url":"https://avatars1.githubusercontent.com/u/286001?v=4","gravatar_id":"","url":"https://api.github.com/users/luser","html_url":"https://github.com/luser","followers_url":"https://api.github.com/users/luser/followers","following_url":"https://api.github.com/users/luser/following{/other_user}","gists_url":"https://api.github.com/users/luser/gists{/gist_id}","starred_url":"https://api.github.com/users/luser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luser/subscriptions","organizations_url":"https://api.github.com/users/luser/orgs","repos_url":"https://api.github.com/users/luser/repos","events_url":"https://api.github.com/users/luser/events{/privacy}","received_events_url":"https://api.github.com/users/luser/received_events","type":"User","site_admin":false},"created_at":"2018-03-15T11:12:58Z","updated_at":"2018-03-15T11:12:58Z","author_association":"NONE","body":"Thanks!"}}
{"actor":{"display_login":"luser"}}