{"action":"created","issue":{"url":"https://api.github.com/repos/xolvio/chimp/issues/447","repository_url":"https://api.github.com/repos/xolvio/chimp","labels_url":"https://api.github.com/repos/xolvio/chimp/issues/447/labels{/name}","comments_url":"https://api.github.com/repos/xolvio/chimp/issues/447/comments","events_url":"https://api.github.com/repos/xolvio/chimp/issues/447/events","html_url":"https://github.com/xolvio/chimp/pull/447","id":170702450,"number":447,"title":"Issue 369 - Command line options","user":{"login":"deanius","id":24406,"avatar_url":"https://avatars.githubusercontent.com/u/24406?v=3","gravatar_id":"","url":"https://api.github.com/users/deanius","html_url":"https://github.com/deanius","followers_url":"https://api.github.com/users/deanius/followers","following_url":"https://api.github.com/users/deanius/following{/other_user}","gists_url":"https://api.github.com/users/deanius/gists{/gist_id}","starred_url":"https://api.github.com/users/deanius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deanius/subscriptions","organizations_url":"https://api.github.com/users/deanius/orgs","repos_url":"https://api.github.com/users/deanius/repos","events_url":"https://api.github.com/users/deanius/events{/privacy}","received_events_url":"https://api.github.com/users/deanius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-11T17:37:46Z","updated_at":"2016-08-28T16:35:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/xolvio/chimp/pulls/447","html_url":"https://github.com/xolvio/chimp/pull/447","diff_url":"https://github.com/xolvio/chimp/pull/447.diff","patch_url":"https://github.com/xolvio/chimp/pull/447.patch"},"body":"WIP Just starting it off right now.."},"comment":{"url":"https://api.github.com/repos/xolvio/chimp/issues/comments/242984387","html_url":"https://github.com/xolvio/chimp/pull/447#issuecomment-242984387","issue_url":"https://api.github.com/repos/xolvio/chimp/issues/447","id":242984387,"user":{"login":"samhatoum","id":2021955,"avatar_url":"https://avatars.githubusercontent.com/u/2021955?v=3","gravatar_id":"","url":"https://api.github.com/users/samhatoum","html_url":"https://github.com/samhatoum","followers_url":"https://api.github.com/users/samhatoum/followers","following_url":"https://api.github.com/users/samhatoum/following{/other_user}","gists_url":"https://api.github.com/users/samhatoum/gists{/gist_id}","starred_url":"https://api.github.com/users/samhatoum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samhatoum/subscriptions","organizations_url":"https://api.github.com/users/samhatoum/orgs","repos_url":"https://api.github.com/users/samhatoum/repos","events_url":"https://api.github.com/users/samhatoum/events{/privacy}","received_events_url":"https://api.github.com/users/samhatoum/received_events","type":"User","site_admin":false},"created_at":"2016-08-28T16:35:54Z","updated_at":"2016-08-28T16:35:54Z","body":"I'm thinking we can add the help for each command inside [the default config file](https://github.com/xolvio/chimp/blob/master/src/bin/default.js), and then have the `--help` provide a list of options, then have --help <command>` show the specific command help.\r\n\r\nData structure wise, I'm open to suggestions. We could:\r\n\r\n* OPTION A: For every config option in the `deafult.config`, we would have a matching `<command>Help` option. So for example:\r\n\r\n  ```javascript\r\nmodule.exports = {\r\n  watch: false,\r\n  watchHelp: 'Puts Chimp into watch mode. This means lorem ipsum dolor...',\r\n  ...\r\n```\r\n\r\n* OPTION B: We create an object for each command, then have a function that to export only the configs. So for example:\r\n\r\n  ```javascript\r\nconst configuration = {\r\n};\r\n\r\nmodule.exports = function getConfiguration() {\r\n  // filter out all the help commands deeply using some underscore magic\r\n};\r\n```\r\n\r\nOption A is simplest, but it would pollute the environment variable space since Chimp takes all the config vars and exposes them over environment variables like this `env.chimp[<config>]`. So we would have `env.chimp['watchHelp']` available. Not nice :)\r\n\r\nOption B doesn't have the problem above, is just a little bit more complex.\r\n\r\nOpen to other options. "}}
{"actor":{"display_login":"samhatoum"}}