cosmetic: re-order option parsing

to match the order in which we susequently process them.
This commit is contained in:
Matthias Radestock committed 2015-07-06 17:26:04 +01:00
1 parent 706f9ee352
commit 02715f88d5
1 file changed
+7 -7
+7 -7
View File
@@ -664,8 +664,11 @@ dns_args() {
WITHOUT_DNS=
while [ $# -gt 0 ] ; do
case "$1" in
--dns-search|--dns-search=*)
DNS_SEARCH_SPECIFIED=1
--with-dns)
WITH_DNS=1
;;
--without-dns)
WITHOUT_DNS=1
;;
--name)
NAME_ARG="$2"
@@ -677,11 +680,8 @@ dns_args() {
-h|--hostname|--hostname=*)
HOSTNAME_SPECIFIED=1
;;
--with-dns)
WITH_DNS=1
;;
--without-dns)
WITHOUT_DNS=1
--dns-search|--dns-search=*)
DNS_SEARCH_SPECIFIED=1
;;
esac
shift