mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: show warning if ETCDCTL_API is not set in v2 --help
FIXES #7385
This commit is contained in:
@@ -32,7 +32,7 @@ func main() {
|
||||
// unset apiEnv to avoid side-effect for future env and flag parsing.
|
||||
os.Unsetenv(apiEnv)
|
||||
if len(apiv) == 0 || apiv == "2" {
|
||||
ctlv2.Start()
|
||||
ctlv2.Start(apiv)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user