{"action":"opened","issue":{"url":"https://api.github.com/repos/celogeek/MooX-Options/issues/33","labels_url":"https://api.github.com/repos/celogeek/MooX-Options/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/celogeek/MooX-Options/issues/33/comments","events_url":"https://api.github.com/repos/celogeek/MooX-Options/issues/33/events","html_url":"https://github.com/celogeek/MooX-Options/issues/33","id":56078702,"number":33,"title":"Use the value of init_arg to specify the command line name of the option.","user":{"login":"djerius","id":196875,"avatar_url":"https://avatars.githubusercontent.com/u/196875?v=3","gravatar_id":"","url":"https://api.github.com/users/djerius","html_url":"https://github.com/djerius","followers_url":"https://api.github.com/users/djerius/followers","following_url":"https://api.github.com/users/djerius/following{/other_user}","gists_url":"https://api.github.com/users/djerius/gists{/gist_id}","starred_url":"https://api.github.com/users/djerius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djerius/subscriptions","organizations_url":"https://api.github.com/users/djerius/orgs","repos_url":"https://api.github.com/users/djerius/repos","events_url":"https://api.github.com/users/djerius/events{/privacy}","received_events_url":"https://api.github.com/users/djerius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-30T20:08:11Z","updated_at":"2015-01-30T20:08:11Z","closed_at":null,"body":"Somtimes an option's name on the command line must differ from the name of its attribute.   If I were doing this for a normal class, I'd use the `init_arg` option to `has` to specify the alternate constructor name.\r\n\r\nIt would be great if `MooX::Options` used the value of `init_arg` as the name of the command line option if it were specified.\r\n\r\nBTW, specifying `init_arg` currently breaks the option, as `MooX::Options` uses the\r\nattribute  name, but that is out of sync with the name that the constructor expects so the option is ignored.\r\n\r\nThanks,\r\nDiab\r\n"}}