{"action":"created","issue":{"url":"https://api.github.com/repos/dthree/vorpal/issues/162","repository_url":"https://api.github.com/repos/dthree/vorpal","labels_url":"https://api.github.com/repos/dthree/vorpal/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/dthree/vorpal/issues/162/comments","events_url":"https://api.github.com/repos/dthree/vorpal/issues/162/events","html_url":"https://github.com/dthree/vorpal/issues/162","id":167737736,"number":162,"title":"Option list is not being printed","user":{"login":"alansouzati","id":1207250,"avatar_url":"https://avatars.githubusercontent.com/u/1207250?v=3","gravatar_id":"","url":"https://api.github.com/users/alansouzati","html_url":"https://github.com/alansouzati","followers_url":"https://api.github.com/users/alansouzati/followers","following_url":"https://api.github.com/users/alansouzati/following{/other_user}","gists_url":"https://api.github.com/users/alansouzati/gists{/gist_id}","starred_url":"https://api.github.com/users/alansouzati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alansouzati/subscriptions","organizations_url":"https://api.github.com/users/alansouzati/orgs","repos_url":"https://api.github.com/users/alansouzati/repos","events_url":"https://api.github.com/users/alansouzati/events{/privacy}","received_events_url":"https://api.github.com/users/alansouzati/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-26T23:45:35Z","updated_at":"2016-07-26T23:46:02Z","closed_at":null,"body":"I'm trying this example from the home page:\r\n\r\n```javascript\r\nconst vorpal = require('vorpal')();\r\n\r\nconst foods = ['burgers', 'chinese', 'pizza', 'sushi'];\r\nconst methods = ['a la carte', 'table d\\'hote'];\r\nconst commandHelp = 'Order a type of food';\r\nconst optionHelp = 'How you want your meal served';\r\n\r\nvorpal\r\n  .command('order ', commandHelp)\r\n  .option('--method [method]', optionHelp, methods)\r\n  .autocomplete(foods)\r\n  .action(function (args, cb) {\r\n    const food = args.food;\r\n    const method = args.options.method;\r\n    this.log(`You ordered ${food} ${method}.`);\r\n    cb();\r\n  });\r\n```\r\n\r\nIf I type:\r\n\r\n`order`: instead of seeing `burgers  chinese  pizza  sushi`,  I see `You ordered undefined undefined`.\r\n\r\nSame for `order sushi --method`.\r\n\r\nI'm assuming there is a change in the API? What is the proper way to do this now?\r\n\r\nI'm basically trying to show the list of available methods."},"comment":{"url":"https://api.github.com/repos/dthree/vorpal/issues/comments/235440163","html_url":"https://github.com/dthree/vorpal/issues/162#issuecomment-235440163","issue_url":"https://api.github.com/repos/dthree/vorpal/issues/162","id":235440163,"user":{"login":"alansouzati","id":1207250,"avatar_url":"https://avatars.githubusercontent.com/u/1207250?v=3","gravatar_id":"","url":"https://api.github.com/users/alansouzati","html_url":"https://github.com/alansouzati","followers_url":"https://api.github.com/users/alansouzati/followers","following_url":"https://api.github.com/users/alansouzati/following{/other_user}","gists_url":"https://api.github.com/users/alansouzati/gists{/gist_id}","starred_url":"https://api.github.com/users/alansouzati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alansouzati/subscriptions","organizations_url":"https://api.github.com/users/alansouzati/orgs","repos_url":"https://api.github.com/users/alansouzati/repos","events_url":"https://api.github.com/users/alansouzati/events{/privacy}","received_events_url":"https://api.github.com/users/alansouzati/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T23:46:02Z","updated_at":"2016-07-26T23:46:02Z","body":"I'm using vorpal `1.11.2`"}}
{"actor":{"display_login":"alansouzati"}}