mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

Maintain existing error message for not-enough-args Add "too many args" if too many args Add more helpful error message if v2 syntax was used New output: ``` sauer@host:~/dev/etcd$ ./bin/etcdctl --endpoints http://localhost:5001 member add Error: member name not provided. sauer@host:~/dev/etcd$ ./bin/etcdctl --endpoints http://localhost:5001 member add node2 node2 Error: too many arguments sauer@host:~/dev/etcd$ ./bin/etcdctl --endpoints http://localhost:5001 member add node2 http://localhost:6002 Error: too many arguments, did you mean "--peer-urls http://localhost:6002" sauer@host:~/dev/etcd$ ./bin/etcdctl --endpoints http://localhost:5001 member add http://localhost:6002 node2 Error: too many arguments, did you mean "--peer-urls http://localhost:6002" ```