minor fix for handling unsupported opt in script
This commit is contained in:
parent
c04438be4b
commit
69b47915b1
|
@ -30,9 +30,9 @@ useEnv=false
|
|||
delete=false
|
||||
createWithoutConfig=false
|
||||
host="https://internal-metrics.solana.com:8086"
|
||||
while getopts "hdec:" opt; do
|
||||
while getopts ":hdec:" opt; do
|
||||
case $opt in
|
||||
h|\?)
|
||||
h)
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
|
@ -47,7 +47,7 @@ while getopts "hdec:" opt; do
|
|||
useEnv=true
|
||||
;;
|
||||
*)
|
||||
usage "unhandled option: $opt"
|
||||
usage "unhandled option: $OPTARG"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue