Allow - in prefix

This commit is contained in:
Michael Vines 2018-09-06 10:08:34 -07:00
parent acb1171422
commit cae345b416
1 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ Configure a GCE-based testnet
delete - delete the testnet
common options:
-p prefix - Optional common prefix for instance names to avoid
-p [prefix] - Optional common prefix for instance names to avoid
collisions (default: $prefix)
create-specific options:
@ -71,7 +71,7 @@ while getopts "h?p:Pi:n:c:z:ga:" opt; do
usage
;;
p)
[[ ${OPTARG//[^A-Za-z0-9]/} == "$OPTARG" ]] || usage "Invalid prefix: \"$OPTARG\", alphanumeric only"
[[ ${OPTARG//[^A-Za-z0-9-]/} == "$OPTARG" ]] || usage "Invalid prefix: \"$OPTARG\", alphanumeric only"
prefix=$OPTARG
;;
P)