{"action":"opened","issue":{"url":"https://api.github.com/repos/JorgeBucaran/getopts/issues/34","repository_url":"https://api.github.com/repos/JorgeBucaran/getopts","labels_url":"https://api.github.com/repos/JorgeBucaran/getopts/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/JorgeBucaran/getopts/issues/34/comments","events_url":"https://api.github.com/repos/JorgeBucaran/getopts/issues/34/events","html_url":"https://github.com/JorgeBucaran/getopts/issues/34","id":297626134,"number":34,"title":"Returning the \"cooked\" args","user":{"login":"zkochan","id":1927579,"avatar_url":"https://avatars0.githubusercontent.com/u/1927579?v=4","gravatar_id":"","url":"https://api.github.com/users/zkochan","html_url":"https://github.com/zkochan","followers_url":"https://api.github.com/users/zkochan/followers","following_url":"https://api.github.com/users/zkochan/following{/other_user}","gists_url":"https://api.github.com/users/zkochan/gists{/gist_id}","starred_url":"https://api.github.com/users/zkochan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zkochan/subscriptions","organizations_url":"https://api.github.com/users/zkochan/orgs","repos_url":"https://api.github.com/users/zkochan/repos","events_url":"https://api.github.com/users/zkochan/events{/privacy}","received_events_url":"https://api.github.com/users/zkochan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-15T22:53:39Z","updated_at":"2018-02-15T22:53:39Z","closed_at":null,"author_association":"NONE","body":"I want to use getopts in [pnpm](https://github.com/pnpm/pnpm). We currently use nopt (like npm) and it returns the [cooked](https://www.npmjs.com/package/nopt#the-rest-of-the-args) (expanded) args\r\n\r\nWe'd need this to be returned by getopts to make the switch.\r\n\r\n```js\r\ngetOpts(['install', '-P'], {alias: {P: 'save-prod'}})\r\n> {_: ['install'], 'save-prod': true, cooked: ['install', '--save-prod']}\r\n```\r\n\r\nwould it be ok to have this feature in getopts or should there be some mapping outside of getopts to get the cooked args? "}}
{"actor":{"display_login":"zkochan"}}