From 2a815984348807e4db44ec1434d6f35d236ee1ec Mon Sep 17 00:00:00 2001 From: Allen Gao Date: Tue, 26 Jan 2016 12:23:08 +0800 Subject: [PATCH] Add the missed long option tags And use variables for options. TrivialFix Change-Id: I6cf8612b4e15ef263d2f5b2dbacc186ccd16871b --- tools/kolla-ansible | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/kolla-ansible b/tools/kolla-ansible index baaee60d34..021af79ac9 100755 --- a/tools/kolla-ansible +++ b/tools/kolla-ansible @@ -41,7 +41,9 @@ Commands: EOF } -ARGS=$(getopt -o hi:p:t: -l help,inventory:,playbook: --name "$0" -- "$@") || { usage >&2; exit 2; } +SHORT_OPTS="hi:p:t:" +LONG_OPTS="help,inventory:,playbook:,tags:" +ARGS=$(getopt -o "${SHORT_OPTS}" -l "${LONG_OPTS}" --name "$0" -- "$@") || { usage >&2; exit 2; } eval set -- "$ARGS" find_base_dir