{"action":"created","comment":{"url":"https://api.github.com/repos/TeXitoi/structopt/pulls/comments/224800209","pull_request_review_id":164262990,"id":224800209,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDgwMDIwOQ==","diff_hunk":"@@ -25,7 +26,7 @@ use syn::token::Comma;\n use syn::*;\n \n /// Generates the `StructOpt` impl.\n-#[proc_macro_derive(StructOpt, attributes(structopt))]\n+#[proc_macro_derive(StructOpt, attributes(structopt, casing))]","path":"structopt-derive/src/lib.rs","position":13,"original_position":13,"commit_id":"9c1a62caf26a7e910576ddf5de0aad146b4d60bd","original_commit_id":"9c1a62caf26a7e910576ddf5de0aad146b4d60bd","user":{"login":"0ndorio","id":1611081,"node_id":"MDQ6VXNlcjE2MTEwODE=","avatar_url":"https://avatars0.githubusercontent.com/u/1611081?v=4","gravatar_id":"","url":"https://api.github.com/users/0ndorio","html_url":"https://github.com/0ndorio","followers_url":"https://api.github.com/users/0ndorio/followers","following_url":"https://api.github.com/users/0ndorio/following{/other_user}","gists_url":"https://api.github.com/users/0ndorio/gists{/gist_id}","starred_url":"https://api.github.com/users/0ndorio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0ndorio/subscriptions","organizations_url":"https://api.github.com/users/0ndorio/orgs","repos_url":"https://api.github.com/users/0ndorio/repos","events_url":"https://api.github.com/users/0ndorio/events{/privacy}","received_events_url":"https://api.github.com/users/0ndorio/received_events","type":"User","site_admin":false},"body":"As mentioned above. I am going to remove it.","created_at":"2018-10-12T14:19:58Z","updated_at":"2018-10-12T14:19:58Z","html_url":"https://github.com/TeXitoi/structopt/pull/143#discussion_r224800209","pull_request_url":"https://api.github.com/repos/TeXitoi/structopt/pulls/143","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/TeXitoi/structopt/pulls/comments/224800209"},"html":{"href":"https://github.com/TeXitoi/structopt/pull/143#discussion_r224800209"},"pull_request":{"href":"https://api.github.com/repos/TeXitoi/structopt/pulls/143"}},"in_reply_to_id":224785706},"pull_request":{"url":"https://api.github.com/repos/TeXitoi/structopt/pulls/143","id":222465029,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNDY1MDI5","html_url":"https://github.com/TeXitoi/structopt/pull/143","diff_url":"https://github.com/TeXitoi/structopt/pull/143.diff","patch_url":"https://github.com/TeXitoi/structopt/pull/143.patch","issue_url":"https://api.github.com/repos/TeXitoi/structopt/issues/143","number":143,"state":"open","locked":false,"title":"[WIP] Feature/18 automatic naming of fields and subcommands","user":{"login":"0ndorio","id":1611081,"node_id":"MDQ6VXNlcjE2MTEwODE=","avatar_url":"https://avatars0.githubusercontent.com/u/1611081?v=4","gravatar_id":"","url":"https://api.github.com/users/0ndorio","html_url":"https://github.com/0ndorio","followers_url":"https://api.github.com/users/0ndorio/followers","following_url":"https://api.github.com/users/0ndorio/following{/other_user}","gists_url":"https://api.github.com/users/0ndorio/gists{/gist_id}","starred_url":"https://api.github.com/users/0ndorio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0ndorio/subscriptions","organizations_url":"https://api.github.com/users/0ndorio/orgs","repos_url":"https://api.github.com/users/0ndorio/repos","events_url":"https://api.github.com/users/0ndorio/events{/privacy}","received_events_url":"https://api.github.com/users/0ndorio/received_events","type":"User","site_admin":false},"body":"Implements most of the features requested by @TeXitoi in #18 and is therefore a successor of #121.\r\n\r\n**Expected features**\r\n  - [x] introduce standalone `long` (defaults to kebab-casing)\r\n  - [x] introduce standalone `short` (defaults to kebab-casing)\r\n  - [x] overwrite default casing for single fields and variants\r\n  - [ ] overwrite default casing for all fields, variants in an enum or struct\r\n\r\n**Expected structure**\r\n  - [x] tests\r\n  - [x] docs\r\n  - [ ] example (will be added as soon as all features are done)\r\n\r\nI struggle a bit with the last missing feature as I am not sure what would be the cleanest way to pass the changed casing from the `struct` or `enum` to their children. My first thought was to return tuple from all of the gen_xxx methods in structopt-derives `lib.rs` but I am unsure about it.\r\n\r\n@TeXitoi Any ideas or expectations? Anything else missing? Feel free to nitpick.","created_at":"2018-10-12T13:23:11Z","updated_at":"2018-10-12T14:19:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dab9fb42127583eeb5891734358c52af2840d99e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/TeXitoi/structopt/pulls/143/commits","review_comments_url":"https://api.github.com/repos/TeXitoi/structopt/pulls/143/comments","review_comment_url":"https://api.github.com/repos/TeXitoi/structopt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TeXitoi/structopt/issues/143/comments","statuses_url":"https://api.github.com/repos/TeXitoi/structopt/statuses/9c1a62caf26a7e910576ddf5de0aad146b4d60bd","head":{"label":"0ndorio:feature/18_automatic_naming_of_fields_and_subcommands","ref":"feature/18_automatic_naming_of_fields_and_subcommands","sha":"9c1a62caf26a7e910576ddf5de0aad146b4d60bd","user":{"login":"0ndorio","id":1611081,"node_id":"MDQ6VXNlcjE2MTEwODE=","avatar_url":"https://avatars0.githubusercontent.com/u/1611081?v=4","gravatar_id":"","url":"https://api.github.com/users/0ndorio","html_url":"https://github.com/0ndorio","followers_url":"https://api.github.com/users/0ndorio/followers","following_url":"https://api.github.com/users/0ndorio/following{/other_user}","gists_url":"https://api.github.com/users/0ndorio/gists{/gist_id}","starred_url":"https://api.github.com/users/0ndorio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0ndorio/subscriptions","organizations_url":"https://api.github.com/users/0ndorio/orgs","repos_url":"https://api.github.com/users/0ndorio/repos","events_url":"https://api.github.com/users/0ndorio/events{/privacy}","received_events_url":"https://api.github.com/users/0ndorio/received_events","type":"User","site_admin":false},"repo":{"id":152665316,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI2NjUzMTY=","name":"structopt","full_name":"0ndorio/structopt","private":false,"owner":{"login":"0ndorio","id":1611081,"node_id":"MDQ6VXNlcjE2MTEwODE=","avatar_url":"https://avatars0.githubusercontent.com/u/1611081?v=4","gravatar_id":"","url":"https://api.github.com/users/0ndorio","html_url":"https://github.com/0ndorio","followers_url":"https://api.github.com/users/0ndorio/followers","following_url":"https://api.github.com/users/0ndorio/following{/other_user}","gists_url":"https://api.github.com/users/0ndorio/gists{/gist_id}","starred_url":"https://api.github.com/users/0ndorio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0ndorio/subscriptions","organizations_url":"https://api.github.com/users/0ndorio/orgs","repos_url":"https://api.github.com/users/0ndorio/repos","events_url":"https://api.github.com/users/0ndorio/events{/privacy}","received_events_url":"https://api.github.com/users/0ndorio/received_events","type":"User","site_admin":false},"html_url":"https://github.com/0ndorio/structopt","description":"Parse command line argument by defining a struct.","fork":true,"url":"https://api.github.com/repos/0ndorio/structopt","forks_url":"https://api.github.com/repos/0ndorio/structopt/forks","keys_url":"https://api.github.com/repos/0ndorio/structopt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/0ndorio/structopt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/0ndorio/structopt/teams","hooks_url":"https://api.github.com/repos/0ndorio/structopt/hooks","issue_events_url":"https://api.github.com/repos/0ndorio/structopt/issues/events{/number}","events_url":"https://api.github.com/repos/0ndorio/structopt/events","assignees_url":"https://api.github.com/repos/0ndorio/structopt/assignees{/user}","branches_url":"https://api.github.com/repos/0ndorio/structopt/branches{/branch}","tags_url":"https://api.github.com/repos/0ndorio/structopt/tags","blobs_url":"https://api.github.com/repos/0ndorio/structopt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/0ndorio/structopt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/0ndorio/structopt/git/refs{/sha}","trees_url":"https://api.github.com/repos/0ndorio/structopt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/0ndorio/structopt/statuses/{sha}","languages_url":"https://api.github.com/repos/0ndorio/structopt/languages","stargazers_url":"https://api.github.com/repos/0ndorio/structopt/stargazers","contributors_url":"https://api.github.com/repos/0ndorio/structopt/contributors","subscribers_url":"https://api.github.com/repos/0ndorio/structopt/subscribers","subscription_url":"https://api.github.com/repos/0ndorio/structopt/subscription","commits_url":"https://api.github.com/repos/0ndorio/structopt/commits{/sha}","git_commits_url":"https://api.github.com/repos/0ndorio/structopt/git/commits{/sha}","comments_url":"https://api.github.com/repos/0ndorio/structopt/comments{/number}","issue_comment_url":"https://api.github.com/repos/0ndorio/structopt/issues/comments{/number}","contents_url":"https://api.github.com/repos/0ndorio/structopt/contents/{+path}","compare_url":"https://api.github.com/repos/0ndorio/structopt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/0ndorio/structopt/merges","archive_url":"https://api.github.com/repos/0ndorio/structopt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/0ndorio/structopt/downloads","issues_url":"https://api.github.com/repos/0ndorio/structopt/issues{/number}","pulls_url":"https://api.github.com/repos/0ndorio/structopt/pulls{/number}","milestones_url":"https://api.github.com/repos/0ndorio/structopt/milestones{/number}","notifications_url":"https://api.github.com/repos/0ndorio/structopt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/0ndorio/structopt/labels{/name}","releases_url":"https://api.github.com/repos/0ndorio/structopt/releases{/id}","deployments_url":"https://api.github.com/repos/0ndorio/structopt/deployments","created_at":"2018-10-11T22:55:22Z","updated_at":"2018-10-11T22:55:24Z","pushed_at":"2018-10-12T13:12:49Z","git_url":"git://github.com/0ndorio/structopt.git","ssh_url":"git@github.com:0ndorio/structopt.git","clone_url":"https://github.com/0ndorio/structopt.git","svn_url":"https://github.com/0ndorio/structopt","homepage":"","size":208,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"TeXitoi:master","ref":"master","sha":"6646491c354252d1cf3b1d45c8476731d2dd7047","user":{"login":"TeXitoi","id":5787066,"node_id":"MDQ6VXNlcjU3ODcwNjY=","avatar_url":"https://avatars0.githubusercontent.com/u/5787066?v=4","gravatar_id":"","url":"https://api.github.com/users/TeXitoi","html_url":"https://github.com/TeXitoi","followers_url":"https://api.github.com/users/TeXitoi/followers","following_url":"https://api.github.com/users/TeXitoi/following{/other_user}","gists_url":"https://api.github.com/users/TeXitoi/gists{/gist_id}","starred_url":"https://api.github.com/users/TeXitoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeXitoi/subscriptions","organizations_url":"https://api.github.com/users/TeXitoi/orgs","repos_url":"https://api.github.com/users/TeXitoi/repos","events_url":"https://api.github.com/users/TeXitoi/events{/privacy}","received_events_url":"https://api.github.com/users/TeXitoi/received_events","type":"User","site_admin":false},"repo":{"id":80781523,"node_id":"MDEwOlJlcG9zaXRvcnk4MDc4MTUyMw==","name":"structopt","full_name":"TeXitoi/structopt","private":false,"owner":{"login":"TeXitoi","id":5787066,"node_id":"MDQ6VXNlcjU3ODcwNjY=","avatar_url":"https://avatars0.githubusercontent.com/u/5787066?v=4","gravatar_id":"","url":"https://api.github.com/users/TeXitoi","html_url":"https://github.com/TeXitoi","followers_url":"https://api.github.com/users/TeXitoi/followers","following_url":"https://api.github.com/users/TeXitoi/following{/other_user}","gists_url":"https://api.github.com/users/TeXitoi/gists{/gist_id}","starred_url":"https://api.github.com/users/TeXitoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TeXitoi/subscriptions","organizations_url":"https://api.github.com/users/TeXitoi/orgs","repos_url":"https://api.github.com/users/TeXitoi/repos","events_url":"https://api.github.com/users/TeXitoi/events{/privacy}","received_events_url":"https://api.github.com/users/TeXitoi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/TeXitoi/structopt","description":"Parse command line argument by defining a struct.","fork":false,"url":"https://api.github.com/repos/TeXitoi/structopt","forks_url":"https://api.github.com/repos/TeXitoi/structopt/forks","keys_url":"https://api.github.com/repos/TeXitoi/structopt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TeXitoi/structopt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TeXitoi/structopt/teams","hooks_url":"https://api.github.com/repos/TeXitoi/structopt/hooks","issue_events_url":"https://api.github.com/repos/TeXitoi/structopt/issues/events{/number}","events_url":"https://api.github.com/repos/TeXitoi/structopt/events","assignees_url":"https://api.github.com/repos/TeXitoi/structopt/assignees{/user}","branches_url":"https://api.github.com/repos/TeXitoi/structopt/branches{/branch}","tags_url":"https://api.github.com/repos/TeXitoi/structopt/tags","blobs_url":"https://api.github.com/repos/TeXitoi/structopt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TeXitoi/structopt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TeXitoi/structopt/git/refs{/sha}","trees_url":"https://api.github.com/repos/TeXitoi/structopt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TeXitoi/structopt/statuses/{sha}","languages_url":"https://api.github.com/repos/TeXitoi/structopt/languages","stargazers_url":"https://api.github.com/repos/TeXitoi/structopt/stargazers","contributors_url":"https://api.github.com/repos/TeXitoi/structopt/contributors","subscribers_url":"https://api.github.com/repos/TeXitoi/structopt/subscribers","subscription_url":"https://api.github.com/repos/TeXitoi/structopt/subscription","commits_url":"https://api.github.com/repos/TeXitoi/structopt/commits{/sha}","git_commits_url":"https://api.github.com/repos/TeXitoi/structopt/git/commits{/sha}","comments_url":"https://api.github.com/repos/TeXitoi/structopt/comments{/number}","issue_comment_url":"https://api.github.com/repos/TeXitoi/structopt/issues/comments{/number}","contents_url":"https://api.github.com/repos/TeXitoi/structopt/contents/{+path}","compare_url":"https://api.github.com/repos/TeXitoi/structopt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TeXitoi/structopt/merges","archive_url":"https://api.github.com/repos/TeXitoi/structopt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TeXitoi/structopt/downloads","issues_url":"https://api.github.com/repos/TeXitoi/structopt/issues{/number}","pulls_url":"https://api.github.com/repos/TeXitoi/structopt/pulls{/number}","milestones_url":"https://api.github.com/repos/TeXitoi/structopt/milestones{/number}","notifications_url":"https://api.github.com/repos/TeXitoi/structopt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TeXitoi/structopt/labels{/name}","releases_url":"https://api.github.com/repos/TeXitoi/structopt/releases{/id}","deployments_url":"https://api.github.com/repos/TeXitoi/structopt/deployments","created_at":"2017-02-03T00:04:25Z","updated_at":"2018-10-12T10:13:20Z","pushed_at":"2018-10-12T13:23:11Z","git_url":"git://github.com/TeXitoi/structopt.git","ssh_url":"git@github.com:TeXitoi/structopt.git","clone_url":"https://github.com/TeXitoi/structopt.git","svn_url":"https://github.com/TeXitoi/structopt","homepage":"","size":202,"stargazers_count":592,"watchers_count":592,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"archived":false,"open_issues_count":22,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":36,"open_issues":22,"watchers":592,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TeXitoi/structopt/pulls/143"},"html":{"href":"https://github.com/TeXitoi/structopt/pull/143"},"issue":{"href":"https://api.github.com/repos/TeXitoi/structopt/issues/143"},"comments":{"href":"https://api.github.com/repos/TeXitoi/structopt/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/TeXitoi/structopt/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/TeXitoi/structopt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TeXitoi/structopt/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/TeXitoi/structopt/statuses/9c1a62caf26a7e910576ddf5de0aad146b4d60bd"}},"author_association":"NONE"}}
{"actor":{"display_login":"0ndorio"}}