{"action":"created","issue":{"url":"https://api.github.com/repos/Praqma/tracey-cli-rabbitmq/issues/4","repository_url":"https://api.github.com/repos/Praqma/tracey-cli-rabbitmq","labels_url":"https://api.github.com/repos/Praqma/tracey-cli-rabbitmq/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/Praqma/tracey-cli-rabbitmq/issues/4/comments","events_url":"https://api.github.com/repos/Praqma/tracey-cli-rabbitmq/issues/4/events","html_url":"https://github.com/Praqma/tracey-cli-rabbitmq/issues/4","id":165971682,"number":4,"title":"cli help is misguiding and broken","user":{"login":"Andrey9kin","id":1671664,"avatar_url":"https://avatars.githubusercontent.com/u/1671664?v=3","gravatar_id":"","url":"https://api.github.com/users/Andrey9kin","html_url":"https://github.com/Andrey9kin","followers_url":"https://api.github.com/users/Andrey9kin/followers","following_url":"https://api.github.com/users/Andrey9kin/following{/other_user}","gists_url":"https://api.github.com/users/Andrey9kin/gists{/gist_id}","starred_url":"https://api.github.com/users/Andrey9kin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andrey9kin/subscriptions","organizations_url":"https://api.github.com/users/Andrey9kin/orgs","repos_url":"https://api.github.com/users/Andrey9kin/repos","events_url":"https://api.github.com/users/Andrey9kin/events{/privacy}","received_events_url":"https://api.github.com/users/Andrey9kin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Praqma/tracey-cli-rabbitmq/labels/Prio%201%20-%20must%20have","name":"Prio 1 - must have","color":"e83d0f"},{"url":"https://api.github.com/repos/Praqma/tracey-cli-rabbitmq/labels/Size%202%20-%20medium","name":"Size 2 - medium","color":"208fe5"},{"url":"https://api.github.com/repos/Praqma/tracey-cli-rabbitmq/labels/Status%20-%20workable","name":"Status - workable","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"MadsNielsen","id":1484793,"avatar_url":"https://avatars.githubusercontent.com/u/1484793?v=3","gravatar_id":"","url":"https://api.github.com/users/MadsNielsen","html_url":"https://github.com/MadsNielsen","followers_url":"https://api.github.com/users/MadsNielsen/followers","following_url":"https://api.github.com/users/MadsNielsen/following{/other_user}","gists_url":"https://api.github.com/users/MadsNielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/MadsNielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadsNielsen/subscriptions","organizations_url":"https://api.github.com/users/MadsNielsen/orgs","repos_url":"https://api.github.com/users/MadsNielsen/repos","events_url":"https://api.github.com/users/MadsNielsen/events{/privacy}","received_events_url":"https://api.github.com/users/MadsNielsen/received_events","type":"User","site_admin":false},"assignees":[{"login":"MadsNielsen","id":1484793,"avatar_url":"https://avatars.githubusercontent.com/u/1484793?v=3","gravatar_id":"","url":"https://api.github.com/users/MadsNielsen","html_url":"https://github.com/MadsNielsen","followers_url":"https://api.github.com/users/MadsNielsen/followers","following_url":"https://api.github.com/users/MadsNielsen/following{/other_user}","gists_url":"https://api.github.com/users/MadsNielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/MadsNielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadsNielsen/subscriptions","organizations_url":"https://api.github.com/users/MadsNielsen/orgs","repos_url":"https://api.github.com/users/MadsNielsen/repos","events_url":"https://api.github.com/users/MadsNielsen/events{/privacy}","received_events_url":"https://api.github.com/users/MadsNielsen/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-07-17T11:00:19Z","updated_at":"2016-07-18T09:16:09Z","closed_at":null,"body":"Let's pretend that I'm a tracey user. Readme doesn't really tell me how I supposed to invoke the tool so I follow CLI help\r\n\r\n```\r\nAndreys-MacBook-Pro:tracey-cli-rabbitmq andrey9kin$ java -jar ./build/libs/tracey-cli-rabbitmq.jar -h\r\nusage: tracey [say | listen] (options)\r\noptions:\r\n\r\n -a <arg>    Host override\r\n -c <arg>    Configuration file\r\n -f          Specify this if the input is a file\r\n -h,--help   Prints help\r\n -p <arg>    Password override\r\n -u <arg>    Username override\r\n\r\nAndreys-MacBook-Pro:tracey-cli-rabbitmq andrey9kin$ java -jar ./build/libs/tracey-cli-rabbitmq.jar say\r\nException in thread \"main\" java.lang.IndexOutOfBoundsException: Index: 1, Size: 1\r\n\tat java.util.LinkedList.checkElementIndex(LinkedList.java:555)\r\n\tat java.util.LinkedList.get(LinkedList.java:476)\r\n\tat net.praqma.tracey.cli.Tracey.main(Tracey.java:100)\r\n\r\nAndreys-MacBook-Pro:tracey-cli-rabbitmq andrey9kin$ java -jar ./build/libs/tracey-cli-rabbitmq.jar say hello\r\nException in thread \"main\" java.lang.IndexOutOfBoundsException: Index: 2, Size: 2\r\n\tat java.util.LinkedList.checkElementIndex(LinkedList.java:555)\r\n\tat java.util.LinkedList.get(LinkedList.java:476)\r\n\tat net.praqma.tracey.cli.Tracey.main(Tracey.java:98)\r\n```\r\n\r\nA normal user will stop here. This is not good enough even for Alfa\r\n\r\nVersion used\r\n```\r\nAndreys-MacBook-Pro:tracey-cli-rabbitmq andrey9kin$ git rev-parse HEAD\r\n4d1bb97c278dc5ee1b2d4c51fd83eaede494546e\r\n```\r\n\r\nPlease use proper CLI parser and make sure that users get meaningful help when something is going wrong. It is critical that messenger is easy to use for a regular Joe otherwise no one will use it. Even us"},"comment":{"url":"https://api.github.com/repos/Praqma/tracey-cli-rabbitmq/issues/comments/233281128","html_url":"https://github.com/Praqma/tracey-cli-rabbitmq/issues/4#issuecomment-233281128","issue_url":"https://api.github.com/repos/Praqma/tracey-cli-rabbitmq/issues/4","id":233281128,"user":{"login":"MadsNielsen","id":1484793,"avatar_url":"https://avatars.githubusercontent.com/u/1484793?v=3","gravatar_id":"","url":"https://api.github.com/users/MadsNielsen","html_url":"https://github.com/MadsNielsen","followers_url":"https://api.github.com/users/MadsNielsen/followers","following_url":"https://api.github.com/users/MadsNielsen/following{/other_user}","gists_url":"https://api.github.com/users/MadsNielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/MadsNielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadsNielsen/subscriptions","organizations_url":"https://api.github.com/users/MadsNielsen/orgs","repos_url":"https://api.github.com/users/MadsNielsen/repos","events_url":"https://api.github.com/users/MadsNielsen/events{/privacy}","received_events_url":"https://api.github.com/users/MadsNielsen/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T09:16:09Z","updated_at":"2016-07-18T09:16:09Z","body":"Okay i dabbled with Argparse4j...i now have this message: \r\n```\r\nD:\\Programming\\Projects\\github\\praqma\\tracey-cli-rabbitmq\\build\\libs>java -jar tracey-cli-rabbitmq.jar -h\r\nusage: tracey [-h] {say,listen} ...\r\n\r\nSend message with Tracey. Using RabbitMQ\r\n\r\nRun with arguments 'say -h' for help in sending messages.\r\nRun with arguments 'listen -h' for help receiving messages\r\n\r\npositional arguments:\r\n  {say,listen}\r\n\r\noptional arguments:\r\n  -h, --help             show this help message and exit\r\n\r\nD:\\Programming\\Projects\\github\\praqma\\tracey-cli-rabbitmq\\build\\libs>java -jar tracey-cli-rabbitmq.jar say -h\r\nusage: tracey say [-h] [-n NODE] [-e EXCHANGE] [-u USER] [-s SECRET]\r\n              [-p PORT] [-c CONFIG] message\r\n\r\npositional arguments:\r\n  message\r\n\r\noptional arguments:\r\n  -h, --help             show this help message and exit\r\n  -n NODE, --node NODE   The URL of the RabbitMQ server\r\n  -e EXCHANGE, --exchange EXCHANGE\r\n                         Exhange name (default: tracey)\r\n  -u USER, --user USER   Username\r\n  -s SECRET, --secret SECRET\r\n                         Password\r\n  -p PORT, --port PORT   Port\r\n  -c CONFIG, --configure CONFIG\r\n``` "}}
{"actor":{"display_login":"MadsNielsen"}}