etcd: use flag iface