From 4d4570f81329f3e99cf0ce1b8ed61d5b9cb39026 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 14 Apr 2019 14:05:07 -0400 Subject: _get_options(): Initialize OPTIND to 1 --- diff --git a/src/main.sh b/src/main.sh index feb425f..5ee0027 100644 --- a/src/main.sh +++ b/src/main.sh @@ -45,7 +45,7 @@ _get_options() { local opt= - unset OPTIND + OPTIND=1 unset OPTARG while getopts "${OPTSTRING}" opt; do case "${opt}" in -- cgit v0.9.1