Skip to content

Commit

Permalink
core: refresh REMAINING_ARGS if recalled
Browse files Browse the repository at this point in the history
Signed-off-by: parth-gr <paarora@redhat.com>
  • Loading branch information
parth-gr committed Sep 1, 2022
1 parent f8186e1 commit 4539442
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kubectl-rook-ceph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ function flag_no_value() {
# When a non-flag arg is reached, stop parsing and return the remaining args in REMAINING_ARGS.
REMAINING_ARGS=()
function parse_flags() {
REMAINING_ARGS=()
local set_value_function="$1"
shift # pop set_value_function arg from the arg list
while (($#)); do
Expand Down

0 comments on commit 4539442

Please sign in to comment.