{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/3901","labels_url":"https://api.github.com/repos/coreos/etcd/issues/3901/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/3901/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/3901/events","html_url":"https://github.com/coreos/etcd/issues/3901","id":118078973,"number":3901,"title":"etcdctl should not return 0 when not properly used","user":{"login":"fridim","id":44725,"avatar_url":"https://avatars.githubusercontent.com/u/44725?v=3","gravatar_id":"","url":"https://api.github.com/users/fridim","html_url":"https://github.com/fridim","followers_url":"https://api.github.com/users/fridim/followers","following_url":"https://api.github.com/users/fridim/following{/other_user}","gists_url":"https://api.github.com/users/fridim/gists{/gist_id}","starred_url":"https://api.github.com/users/fridim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fridim/subscriptions","organizations_url":"https://api.github.com/users/fridim/orgs","repos_url":"https://api.github.com/users/fridim/repos","events_url":"https://api.github.com/users/fridim/events{/privacy}","received_events_url":"https://api.github.com/users/fridim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coreos/etcd/labels/component/etcdctl","name":"component/etcdctl","color":"0052cc"},{"url":"https://api.github.com/repos/coreos/etcd/labels/kind/bug","name":"kind/bug","color":"ff0000"}],"state":"open","locked":false,"assignee":{"login":"xiang90","id":4479947,"avatar_url":"https://avatars.githubusercontent.com/u/4479947?v=3","gravatar_id":"","url":"https://api.github.com/users/xiang90","html_url":"https://github.com/xiang90","followers_url":"https://api.github.com/users/xiang90/followers","following_url":"https://api.github.com/users/xiang90/following{/other_user}","gists_url":"https://api.github.com/users/xiang90/gists{/gist_id}","starred_url":"https://api.github.com/users/xiang90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiang90/subscriptions","organizations_url":"https://api.github.com/users/xiang90/orgs","repos_url":"https://api.github.com/users/xiang90/repos","events_url":"https://api.github.com/users/xiang90/events{/privacy}","received_events_url":"https://api.github.com/users/xiang90/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/coreos/etcd/milestones/27","html_url":"https://github.com/coreos/etcd/milestones/unplanned","labels_url":"https://api.github.com/repos/coreos/etcd/milestones/27/labels","id":1411125,"number":27,"title":"unplanned","description":"Not targeted for any release by the etcd core team.","creator":{"login":"jonboulle","id":2601015,"avatar_url":"https://avatars.githubusercontent.com/u/2601015?v=3","gravatar_id":"","url":"https://api.github.com/users/jonboulle","html_url":"https://github.com/jonboulle","followers_url":"https://api.github.com/users/jonboulle/followers","following_url":"https://api.github.com/users/jonboulle/following{/other_user}","gists_url":"https://api.github.com/users/jonboulle/gists{/gist_id}","starred_url":"https://api.github.com/users/jonboulle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonboulle/subscriptions","organizations_url":"https://api.github.com/users/jonboulle/orgs","repos_url":"https://api.github.com/users/jonboulle/repos","events_url":"https://api.github.com/users/jonboulle/events{/privacy}","received_events_url":"https://api.github.com/users/jonboulle/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":0,"state":"open","created_at":"2015-11-13T21:39:53Z","updated_at":"2015-11-20T18:45:14Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-11-20T16:42:47Z","updated_at":"2015-11-20T20:37:41Z","closed_at":null,"body":"Context: we use etcdctl in scripts with set -e mode.  It is expected that etcdctl returns something different of 0 when used with wrong arguments.\r\n(I think standard exit status is 2?)\r\n\r\nThe issue:\r\n\r\n    etcdctl -vsdfa\r\n    [ ... display usage... ]\r\n    echo $?\r\n    0\r\n"},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/158517775","html_url":"https://github.com/coreos/etcd/issues/3901#issuecomment-158517775","issue_url":"https://api.github.com/repos/coreos/etcd/issues/3901","id":158517775,"user":{"login":"gyuho","id":6799218,"avatar_url":"https://avatars.githubusercontent.com/u/6799218?v=3","gravatar_id":"","url":"https://api.github.com/users/gyuho","html_url":"https://github.com/gyuho","followers_url":"https://api.github.com/users/gyuho/followers","following_url":"https://api.github.com/users/gyuho/following{/other_user}","gists_url":"https://api.github.com/users/gyuho/gists{/gist_id}","starred_url":"https://api.github.com/users/gyuho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyuho/subscriptions","organizations_url":"https://api.github.com/users/gyuho/orgs","repos_url":"https://api.github.com/users/gyuho/repos","events_url":"https://api.github.com/users/gyuho/events{/privacy}","received_events_url":"https://api.github.com/users/gyuho/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T20:37:41Z","updated_at":"2015-11-20T20:37:41Z","body":"@jonboulle I am interested. Is `spf13/cobra` the preferred choice for etcd?\r\nI think either way, it's good to have one library for all cmd interface."}}