Allow - in prefix
This commit is contained in:
@ -37,8 +37,8 @@ Configure a GCE-based testnet
|
|||||||
delete - delete the testnet
|
delete - delete the testnet
|
||||||
|
|
||||||
common options:
|
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)
|
collisions (default: $prefix)
|
||||||
|
|
||||||
create-specific options:
|
create-specific options:
|
||||||
-n [number] - Number of validator nodes (default: $validatorNodeCount)
|
-n [number] - Number of validator nodes (default: $validatorNodeCount)
|
||||||
@ -71,7 +71,7 @@ while getopts "h?p:Pi:n:c:z:ga:" opt; do
|
|||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
p)
|
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
|
prefix=$OPTARG
|
||||||
;;
|
;;
|
||||||
P)
|
P)
|
||||||
|
Reference in New Issue
Block a user