Merge pull request #2901 from weaveworks/remove-deprecated-options
Remove deprecation warnings for things removed a long time ago
This commit is contained in:
commit
7d812e3087
1 file changed
+4
-46
@@ -1024,9 +1024,6 @@ dns_args() {
|
|||||||
WITHOUT_DNS=
|
WITHOUT_DNS=
|
||||||
while [ $# -gt 0 ] ; do
|
while [ $# -gt 0 ] ; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--with-dns)
|
|
||||||
echo "Warning: $1 is deprecated; it is on by default" >&2
|
|
||||||
;;
|
|
||||||
--without-dns)
|
--without-dns)
|
||||||
WITHOUT_DNS=1
|
WITHOUT_DNS=1
|
||||||
;;
|
;;
|
||||||
@@ -1712,52 +1709,15 @@ deprecation_warning() {
|
|||||||
deprecation_warnings() {
|
deprecation_warnings() {
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-password|-password=*)
|
# Flags that have a following argument which should not be inspected
|
||||||
deprecation_warning $1 "--password"
|
--password|--nickname|--ipalloc-range|--ipalloc-default-subnet)
|
||||||
[ "$1" = "-password" ] && shift
|
|
||||||
;;
|
|
||||||
--password)
|
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-nickname|-nickname=*)
|
|
||||||
deprecation_warning $1 "--nickname"
|
|
||||||
[ "$1" = "-nickname" ] && shift
|
|
||||||
;;
|
|
||||||
--nickname)
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
-nodiscovery|--nodiscovery)
|
|
||||||
deprecation_warning $1 "--no-discovery"
|
|
||||||
;;
|
|
||||||
-iprange|--iprange|-iprange=*|--iprange=*)
|
|
||||||
deprecation_warning $1 "--ipalloc-range"
|
|
||||||
[ ${1#--} = "iprange" ] && shift
|
|
||||||
;;
|
|
||||||
--ipalloc-range)
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
-ipsubnet|--ipsubnet|-ipsubnet=*|--ipsubnet=*)
|
|
||||||
deprecation_warning $1 "--ipalloc-default-subnet"
|
|
||||||
[ ${1#--} = "ipsubnet" ] && shift
|
|
||||||
;;
|
|
||||||
--ipalloc-default-subnet)
|
|
||||||
shift
|
|
||||||
;;
|
|
||||||
-initpeercount|--initpeercount|-initpeercount=*|--initpeercount=*)
|
|
||||||
deprecation_warning $1 "--ipalloc-init consensus=<count>"
|
|
||||||
[ ${1#--} = "initpeercount" ] && shift
|
|
||||||
;;
|
|
||||||
--init-peer-count|--init-peer-count=*)
|
--init-peer-count|--init-peer-count=*)
|
||||||
deprecation_warning $1 "--ipalloc-init consensus=<count>"
|
deprecation_warning $1 "--ipalloc-init consensus=<count>"
|
||||||
[ ${1#--} = "init-peer-count" ] && shift
|
[ ${1#--} = "init-peer-count" ] && shift
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-no-default-ipam|--no-default-ipam)
|
|
||||||
deprecation_warning $1 "--no-default-ipalloc"
|
|
||||||
;;
|
|
||||||
--with-dns)
|
|
||||||
echo "Warning: $1 has been removed; DNS is on by default" >&2
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
@@ -1903,15 +1863,13 @@ EOF
|
|||||||
launch_proxy "$@"
|
launch_proxy "$@"
|
||||||
echo $PROXY_CONTAINER
|
echo $PROXY_CONTAINER
|
||||||
;;
|
;;
|
||||||
env|proxy-env)
|
env)
|
||||||
[ "$COMMAND" = "env" ] || deprecation_warning "$COMMAND" "'weave env'"
|
|
||||||
if PROXY_ADDR=$(proxy_addr) ; then
|
if PROXY_ADDR=$(proxy_addr) ; then
|
||||||
[ "$PROXY_ADDR" = "$DOCKER_CLIENT_HOST" ] || RESTORE="ORIG_DOCKER_HOST=$DOCKER_CLIENT_HOST"
|
[ "$PROXY_ADDR" = "$DOCKER_CLIENT_HOST" ] || RESTORE="ORIG_DOCKER_HOST=$DOCKER_CLIENT_HOST"
|
||||||
echo "export DOCKER_HOST=$PROXY_ADDR $RESTORE"
|
echo "export DOCKER_HOST=$PROXY_ADDR $RESTORE"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
config|proxy-config)
|
config)
|
||||||
[ "$COMMAND" = "config" ] || deprecation_warning "$COMMAND" "'weave config'"
|
|
||||||
PROXY_ADDR=$(proxy_addr) && echo "-H=$PROXY_ADDR"
|
PROXY_ADDR=$(proxy_addr) && echo "-H=$PROXY_ADDR"
|
||||||
;;
|
;;
|
||||||
connect)
|
connect)
|
||||||
|
|||||||
Reference in new issue
Block a user