The opt module counts the number of options that were defined, but
the count is never used.
This commit removes the unused variable.
#!/bin/bash
# opt.sh - Toolbox commandline parser module
-# Copyright (C) 2021 Matthias Kruk
+# Copyright (C) 2021-2022 Matthias Kruk
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
declare -Axg __opt_regex
declare -Axg __opt_action
declare -Axg __opt_map
- declare -xgi __opt_num=0
opt_add_arg "h" "help" "" 0 \
"Print this text" \
__opt_default["$long"]="$default"
fi
- ((__opt_num++))
-
return 0
}