{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/logstash/issues/5017","repository_url":"https://api.github.com/repos/elastic/logstash","labels_url":"https://api.github.com/repos/elastic/logstash/issues/5017/labels{/name}","comments_url":"https://api.github.com/repos/elastic/logstash/issues/5017/comments","events_url":"https://api.github.com/repos/elastic/logstash/issues/5017/events","html_url":"https://github.com/elastic/logstash/issues/5017","id":145985924,"number":5017,"title":"bin/logstash -version tries to parse a config","user":{"login":"ph","id":640,"avatar_url":"https://avatars.githubusercontent.com/u/640?v=3","gravatar_id":"","url":"https://api.github.com/users/ph","html_url":"https://github.com/ph","followers_url":"https://api.github.com/users/ph/followers","following_url":"https://api.github.com/users/ph/following{/other_user}","gists_url":"https://api.github.com/users/ph/gists{/gist_id}","starred_url":"https://api.github.com/users/ph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ph/subscriptions","organizations_url":"https://api.github.com/users/ph/orgs","repos_url":"https://api.github.com/users/ph/repos","events_url":"https://api.github.com/users/ph/events{/privacy}","received_events_url":"https://api.github.com/users/ph/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/logstash/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/elastic/logstash/labels/known%20issue","name":"known issue","color":"eb6420"},{"url":"https://api.github.com/repos/elastic/logstash/labels/v5.0.0-alpha2","name":"v5.0.0-alpha2","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-05T13:18:03Z","updated_at":"2016-04-05T13:18:03Z","closed_at":null,"body":"I don' think this is expected when you run `bin/logstash -version` it tries to load a configuration file and fails. I believe it should return `missing parameters` or `invalid command`\r\n```\r\n~/e/s/logstash-5.0.0-alpha1.snapshot2 ❯❯❯ bin/logstash -version\r\nfetched an invalid config {:config=>\"rsioninput { stdin { type => stdin } }output { stdout { codec => rubydebug } }\", :reason=>\"Expected one of #, input, filter, output at line 1, column 1 (byte 1) after \", :level=>:error}\r\nstarting agent {:level=>:info}\r\n~/e/s/logstash-5.0.0-alpha1.snapshot2\r\n\r\n```"}}