Skip to content

Commit

Permalink
cosmetic: re-order option parsing
Browse files Browse the repository at this point in the history
to match the order in which we susequently process them.
  • Loading branch information
rade committed Jul 6, 2015
1 parent 706f9ee commit 02715f8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions weave
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 02715f8

Please sign in to comment.