From af8f5906469757c26cd0fa70aaf5d70f16090f5a Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 12 Apr 2016 15:04:14 +0100 Subject: [PATCH] Deprecate --init-peer-count --- weave | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/weave b/weave index 4d32afe2..a2f4bd72 100755 --- a/weave +++ b/weave @@ -42,7 +42,7 @@ weave launch launch-router [--password ] [--name ] [--nickname ] [--ipalloc-init ] [--ipalloc-range [--ipalloc-default-subnet ]] - [--init-peer-count ] [--no-discovery] [--no-dns] + [--no-discovery] [--no-dns] [--trusted-subnets ,...] ... launch-proxy [-H ] [--without-dns] [--no-multicast-route] [--no-rewrite-hosts] [--no-default-ipalloc] @@ -1865,10 +1865,12 @@ deprecation_warnings() { shift ;; -initpeercount|--initpeercount|-initpeercount=*|--initpeercount=*) - deprecation_warning $1 "--init-peer-count" + deprecation_warning $1 "--ipalloc-init" [ ${1#--} = "initpeercount" ] && shift ;; - --init-peer-count) + --init-peer-count|--init-peer-count=*) + deprecation_warning $1 "--ipalloc-init" + [ ${1#--} = "init-peer-count" ] && shift shift ;; -no-default-ipam|--no-default-ipam)