fix: stop parse options on double dashes

This commit is contained in:
Ben Grande 2024-07-15 11:07:27 +02:00
parent cf432651b3
commit a713cef2a0
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56

View File

@ -367,6 +367,7 @@ while test "${#}" -gt "0"; do
-n|--proto) proto="${2}"; shift;;
-s|--persistent) persistent=1; shift;;
-h|--help) usage;;
--) break;;
*) echo "Unsupported option" >&2; exit 1;;
esac
shift