{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/3140","labels_url":"https://api.github.com/repos/coreos/etcd/issues/3140/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/3140/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/3140/events","html_url":"https://github.com/coreos/etcd/issues/3140","id":95308640,"number":3140,"title":"unexpected output for \"etcdctl -h | grep --\"","user":{"login":"gouyang","id":1418734,"avatar_url":"https://avatars.githubusercontent.com/u/1418734?v=3","gravatar_id":"","url":"https://api.github.com/users/gouyang","html_url":"https://github.com/gouyang","followers_url":"https://api.github.com/users/gouyang/followers","following_url":"https://api.github.com/users/gouyang/following{/other_user}","gists_url":"https://api.github.com/users/gouyang/gists{/gist_id}","starred_url":"https://api.github.com/users/gouyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gouyang/subscriptions","organizations_url":"https://api.github.com/users/gouyang/orgs","repos_url":"https://api.github.com/users/gouyang/repos","events_url":"https://api.github.com/users/gouyang/events{/privacy}","received_events_url":"https://api.github.com/users/gouyang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-15T23:03:03Z","updated_at":"2015-07-19T02:27:04Z","closed_at":null,"body":"```\r\n$ ./etcdctl -h | grep --peers\r\ngrep: unrecognized option '--peers'\r\nUsage: grep [OPTION]... PATTERN [FILE]...\r\nTry 'grep --help' for more information.\r\npanic: template: help:1:0: executing \"help\" at <NAME:\r\n   >: write /dev/stdout: broken pipe\r\n\r\ngoroutine 1 [running]:\r\ngithub.com/coreos/etcd/Godeps/_workspace/src/github.com/codegangsta/cli.printHelp(0xdd5a90, 0x1e7, 0xb77660, 0xc2080d0240)\r\n\t/home/guohua/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/Godeps/_workspace/src/github.com/codegangsta/cli/help.go:167 +0x358\r\ngithub.com/coreos/etcd/Godeps/_workspace/src/github.com/codegangsta/cli.ShowAppHelp(0xc20815c4d0)\r\n\t/home/guohua/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/Godeps/_workspace/src/github.com/codegangsta/cli/help.go:103 +0x59\r\ngithub.com/coreos/etcd/Godeps/_workspace/src/github.com/codegangsta/cli.checkHelp(0xc20815c4d0, 0xc20815c400)\r\n\t/home/guohua/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/Godeps/_workspace/src/github.com/codegangsta/cli/help.go:183 +0x89\r\ngithub.com/coreos/etcd/Godeps/_workspace/src/github.com/codegangsta/cli.(*App).Run(0xc2080d0240, 0xc20800a380, 0x2, 0x2, 0x0, 0x0)\r\n\t/home/guohua/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/Godeps/_workspace/src/github.com/codegangsta/cli/app.go:105 +0x842\r\nmain.main()\r\n\t/home/guohua/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/etcdctl/main.go:62 +0x18c8\r\n\r\ngoroutine 5 [chan receive]:\r\ngithub.com/coreos/etcd/Godeps/_workspace/src/github.com/golang/glog.(*loggingT).flushDaemon(0x106bc80)\r\n\t/home/guohua/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/Godeps/_workspace/src/github.com/golang/glog/glog.go:879 +0x67\r\ncreated by github.com/coreos/etcd/Godeps/_workspace/src/github.com/golang/glog.init.1\r\n\t/home/guohua/go/src/github.com/coreos/etcd/gopath/src/github.com/coreos/etcd/Godeps/_workspace/src/github.com/golang/glog/glog.go:410 +0x297\r\n\r\ngoroutine 12 [syscall]:\r\nos/signal.loop()\r\n\t/home/guohua/go1.5/src/os/signal/signal_unix.go:22 +0x18\r\ncreated by os/signal.init.1\r\n\t/home/guohua/go1.5/src/os/signal/signal_unix.go:28 +0x37\r\n```\r\n```\r\n$ ./etcdctl -v\r\netcdctl version 2.1.0-rc.0+git\r\n```\r\n\r\ntest with other program, docker for example, no such issue\r\n```\r\n$ docker -h | grep --peers\r\ngrep: unrecognized option '--peers'\r\nUsage: grep [OPTION]... PATTERN [FILE]...\r\nTry 'grep --help' for more information.\r\n```"},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/122616013","html_url":"https://github.com/coreos/etcd/issues/3140#issuecomment-122616013","issue_url":"https://api.github.com/repos/coreos/etcd/issues/3140","id":122616013,"user":{"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},"created_at":"2015-07-19T02:27:04Z","updated_at":"2015-07-19T02:27:04Z","body":"@yichengq If this is a dependency issue, can you please open an issue in the dependency repo and refer it here? Thanks!"}}