{"action":"created","issue":{"url":"https://api.github.com/repos/konstructs/client/issues/92","labels_url":"https://api.github.com/repos/konstructs/client/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/konstructs/client/issues/92/comments","events_url":"https://api.github.com/repos/konstructs/client/issues/92/events","html_url":"https://github.com/konstructs/client/pull/92","id":105494188,"number":92,"title":"Proper parsing of arguments, smarter login system","user":{"login":"Henningstone","id":9981005,"avatar_url":"https://avatars.githubusercontent.com/u/9981005?v=3","gravatar_id":"","url":"https://api.github.com/users/Henningstone","html_url":"https://github.com/Henningstone","followers_url":"https://api.github.com/users/Henningstone/followers","following_url":"https://api.github.com/users/Henningstone/following{/other_user}","gists_url":"https://api.github.com/users/Henningstone/gists{/gist_id}","starred_url":"https://api.github.com/users/Henningstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Henningstone/subscriptions","organizations_url":"https://api.github.com/users/Henningstone/orgs","repos_url":"https://api.github.com/users/Henningstone/repos","events_url":"https://api.github.com/users/Henningstone/events{/privacy}","received_events_url":"https://api.github.com/users/Henningstone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-09T00:29:05Z","updated_at":"2015-09-09T18:36:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/konstructs/client/pulls/92","html_url":"https://github.com/konstructs/client/pull/92","diff_url":"https://github.com/konstructs/client/pull/92.diff","patch_url":"https://github.com/konstructs/client/pull/92.patch"},"body":"### Changes to the commandline arguments\r\nThe arguments are properly parsed now, like follows:\r\n```\r\n./konstructs\r\n    [(-s/--server) <serveraddress>]\r\n    [(-u/--user) <username>]\r\n    [(-p/--password) <password>]\r\n```\r\n- The arguments are designed like it's common on Unix-like systems, therefore all have a short version and a long version, marked with single or double dash.\r\n\r\n- The order of the arguments is completely irrelevant here, since the switches are telling which argument comes next.\r\n\r\n- Additionally, every single arguments is optional, so the player can decide which argument(s) he want to pass. Very useful if you're e.g. only connecting to the same server and with the same password every time, but with different usernames.\r\n\r\n---------------------\r\n### Changes to the login prompt\r\nThe way of logging in is a bit smarter now, but I'd not call it elegant yet.\r\n\r\n- If the client is not connected, the input prompt is force-opened and cannot be closed\r\n\r\n- I added a function `update_login_prompt()` which only updates the text of the login prompt to the correct text.\r\n\r\n- This function is used whenever the login prompt may have changed to update the text.\r\n\r\n---------------------\r\n### Additional tweaks\r\n+ Changed the login messages to be nicer :)\r\n+ If the input prompt is open while connected, it says `Chat>` now instead of `Command>`\r\n+ Changed the return type of `load_textures()` and `load_shaders(....)` to void\r\n+ Fixed some typos\r\n\r\n\r\n## 2nd commit\r\nUpdated README.md\r\n- Added information about the new arguments\r\n- Additionally fixed typos and changed some phrases to be nicer :)"},"comment":{"url":"https://api.github.com/repos/konstructs/client/issues/comments/139000951","html_url":"https://github.com/konstructs/client/pull/92#issuecomment-139000951","issue_url":"https://api.github.com/repos/konstructs/client/issues/92","id":139000951,"user":{"login":"petterarvidsson","id":1921188,"avatar_url":"https://avatars.githubusercontent.com/u/1921188?v=3","gravatar_id":"","url":"https://api.github.com/users/petterarvidsson","html_url":"https://github.com/petterarvidsson","followers_url":"https://api.github.com/users/petterarvidsson/followers","following_url":"https://api.github.com/users/petterarvidsson/following{/other_user}","gists_url":"https://api.github.com/users/petterarvidsson/gists{/gist_id}","starred_url":"https://api.github.com/users/petterarvidsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petterarvidsson/subscriptions","organizations_url":"https://api.github.com/users/petterarvidsson/orgs","repos_url":"https://api.github.com/users/petterarvidsson/repos","events_url":"https://api.github.com/users/petterarvidsson/events{/privacy}","received_events_url":"https://api.github.com/users/petterarvidsson/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T18:36:17Z","updated_at":"2015-09-09T18:36:17Z","body":"wow @Henningstone this is great!"}}