{"action":"created","issue":{"url":"https://api.github.com/repos/trentm/node-dashdash/issues/10","labels_url":"https://api.github.com/repos/trentm/node-dashdash/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/trentm/node-dashdash/issues/10/comments","events_url":"https://api.github.com/repos/trentm/node-dashdash/issues/10/events","html_url":"https://github.com/trentm/node-dashdash/issues/10","id":66010409,"number":10,"title":"Ability to specify a default value for custom option types","user":{"login":"marshall007","id":877936,"avatar_url":"https://avatars.githubusercontent.com/u/877936?v=3","gravatar_id":"","url":"https://api.github.com/users/marshall007","html_url":"https://github.com/marshall007","followers_url":"https://api.github.com/users/marshall007/followers","following_url":"https://api.github.com/users/marshall007/following{/other_user}","gists_url":"https://api.github.com/users/marshall007/gists{/gist_id}","starred_url":"https://api.github.com/users/marshall007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marshall007/subscriptions","organizations_url":"https://api.github.com/users/marshall007/orgs","repos_url":"https://api.github.com/users/marshall007/repos","events_url":"https://api.github.com/users/marshall007/events{/privacy}","received_events_url":"https://api.github.com/users/marshall007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-02T20:58:56Z","updated_at":"2015-04-06T06:31:14Z","closed_at":null,"body":"I'd like to be able to set a default value within `dashdash.addOptionType(...)` so that it doesn't need to be set on each individual option that uses that type."},"comment":{"url":"https://api.github.com/repos/trentm/node-dashdash/issues/comments/89944887","html_url":"https://github.com/trentm/node-dashdash/issues/10#issuecomment-89944887","issue_url":"https://api.github.com/repos/trentm/node-dashdash/issues/10","id":89944887,"user":{"login":"trentm","id":46866,"avatar_url":"https://avatars.githubusercontent.com/u/46866?v=3","gravatar_id":"","url":"https://api.github.com/users/trentm","html_url":"https://github.com/trentm","followers_url":"https://api.github.com/users/trentm/followers","following_url":"https://api.github.com/users/trentm/following{/other_user}","gists_url":"https://api.github.com/users/trentm/gists{/gist_id}","starred_url":"https://api.github.com/users/trentm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trentm/subscriptions","organizations_url":"https://api.github.com/users/trentm/orgs","repos_url":"https://api.github.com/users/trentm/repos","events_url":"https://api.github.com/users/trentm/events{/privacy}","received_events_url":"https://api.github.com/users/trentm/received_events","type":"User","site_admin":false},"created_at":"2015-04-06T06:31:14Z","updated_at":"2015-04-06T06:31:14Z","body":"Sounds reasonable. Do you have a concrete/realistic example where you'd use that? I find that helps a lot for motivation in examples, tests, etc. The best contrived example I have is a 'fruit' type where a user wants to default it a '-p FRUIT, --pie FRUIT' option to 'apple'. :)"}}