{"action":"opened","issue":{"url":"https://api.github.com/repos/bcoe/yargs/issues/236","labels_url":"https://api.github.com/repos/bcoe/yargs/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/bcoe/yargs/issues/236/comments","events_url":"https://api.github.com/repos/bcoe/yargs/issues/236/events","html_url":"https://github.com/bcoe/yargs/issues/236","id":101878857,"number":236,"title":"Requiring doesn't work anymore","user":{"login":"maxrimue","id":7421183,"avatar_url":"https://avatars.githubusercontent.com/u/7421183?v=3","gravatar_id":"","url":"https://api.github.com/users/maxrimue","html_url":"https://github.com/maxrimue","followers_url":"https://api.github.com/users/maxrimue/followers","following_url":"https://api.github.com/users/maxrimue/following{/other_user}","gists_url":"https://api.github.com/users/maxrimue/gists{/gist_id}","starred_url":"https://api.github.com/users/maxrimue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxrimue/subscriptions","organizations_url":"https://api.github.com/users/maxrimue/orgs","repos_url":"https://api.github.com/users/maxrimue/repos","events_url":"https://api.github.com/users/maxrimue/events{/privacy}","received_events_url":"https://api.github.com/users/maxrimue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-19T12:15:24Z","updated_at":"2015-08-19T12:15:24Z","closed_at":null,"body":"I created a node module and built in yargs to check for commands and flags etc.\r\nI made yargs require at least one command, and each command requires certain options.\r\nUsing my module via the CLI works just fine and as expected, however, when I want to require my module for programmatic use, I get an error that at least one command is required. So the problem here is that my module now responds to a require() like to a call from the CLI. Is that supposed to happen?"}}