{"action":"created","issue":{"url":"https://api.github.com/repos/thelounge/lounge/issues/419","repository_url":"https://api.github.com/repos/thelounge/lounge","labels_url":"https://api.github.com/repos/thelounge/lounge/issues/419/labels{/name}","comments_url":"https://api.github.com/repos/thelounge/lounge/issues/419/comments","events_url":"https://api.github.com/repos/thelounge/lounge/issues/419/events","html_url":"https://github.com/thelounge/lounge/issues/419","id":161091829,"number":419,"title":"Add a CLI param to override config variables","user":{"login":"xPaw","id":613331,"avatar_url":"https://avatars.githubusercontent.com/u/613331?v=3","gravatar_id":"","url":"https://api.github.com/users/xPaw","html_url":"https://github.com/xPaw","followers_url":"https://api.github.com/users/xPaw/followers","following_url":"https://api.github.com/users/xPaw/following{/other_user}","gists_url":"https://api.github.com/users/xPaw/gists{/gist_id}","starred_url":"https://api.github.com/users/xPaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xPaw/subscriptions","organizations_url":"https://api.github.com/users/xPaw/orgs","repos_url":"https://api.github.com/users/xPaw/repos","events_url":"https://api.github.com/users/xPaw/events{/privacy}","received_events_url":"https://api.github.com/users/xPaw/received_events","type":"User","site_admin":false},"labels":[{"id":323424562,"url":"https://api.github.com/repos/thelounge/lounge/labels/enhancement","name":"enhancement","color":"2196F3","default":true},{"id":382832874,"url":"https://api.github.com/repos/thelounge/lounge/labels/up%20for%20grabs","name":"up for grabs","color":"00C853","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-19T20:53:43Z","updated_at":"2016-12-15T06:49:30Z","closed_at":null,"body":"Something like `-c https.enable=true`.\n\nThis would remove the need to have ip/port/public/private params.\n"},"comment":{"url":"https://api.github.com/repos/thelounge/lounge/issues/comments/267252569","html_url":"https://github.com/thelounge/lounge/issues/419#issuecomment-267252569","issue_url":"https://api.github.com/repos/thelounge/lounge/issues/419","id":267252569,"user":{"login":"astorije","id":113730,"avatar_url":"https://avatars.githubusercontent.com/u/113730?v=3","gravatar_id":"","url":"https://api.github.com/users/astorije","html_url":"https://github.com/astorije","followers_url":"https://api.github.com/users/astorije/followers","following_url":"https://api.github.com/users/astorije/following{/other_user}","gists_url":"https://api.github.com/users/astorije/gists{/gist_id}","starred_url":"https://api.github.com/users/astorije/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astorije/subscriptions","organizations_url":"https://api.github.com/users/astorije/orgs","repos_url":"https://api.github.com/users/astorije/repos","events_url":"https://api.github.com/users/astorije/events{/privacy}","received_events_url":"https://api.github.com/users/astorije/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T06:49:30Z","updated_at":"2016-12-15T06:49:30Z","body":"Thinking back at this, and after fiddling with command line code and discovering the madness there, I agree with this.\r\n\r\nA few random thoughts about the CLI, some of them being related to this very issue:\r\n\r\n- `lounge <subcmd>` is a nice thing, àla git. Problem is, it is very poorly handled at the moment. This should be improved by respecting [this](https://github.com/tj/commander.js#git-style-sub-commands) (we use `cmd`, just not correctly 😅)\r\n- `config` subcommand is pointless and should be deprecated. Config will most likely always be this config file and can be edited with any text editor (as opposed with user management which might evolve and subcommands for that are just a nice abstraction over that).\r\n- `private`/`public`/`host`/`bind`/`port` are indeed not necessary here for a normal use case. Esoteric use cases can use your suggested option.\r\n- Some options are still good to have: location of the configuration (currently `home`, but I'm not too happy with how it's handled), `--help`, `--version`, and maybe `--debug`? (even though this latter one can be enabled with your suggestion, there might be some benefits in having it at this level, like debugging configuration file issues, etc.)\r\n\r\nSo anyway, 👍 on the idea with some suggestions."}}
{"actor":{"display_login":"astorije"}}