Skip to content

Commit

Permalink
Bad PR
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Neff <andy@visionsystemsinc.com>
  • Loading branch information
andyneff committed May 9, 2024
1 parent aa346ec commit 74e6644
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linux/command_tools.bsh
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,17 @@ function parse-generic()
while (( ${#} )); do
case "${1}" in
-*)
# Anything that takes one arguments from the array arguments_with_value
# Anything that takes one argument from the array arguments_with_value
for arg in ${arguments_with_value[@]+"${arguments_with_value[@]}"}; do
# No need to check "${arg}=", that will be handled as taking "zero argument" below
# No need to check "${arg}=", that will be handled as taking "zero arguments" below
if [ "${1}" = "${arg}" ]; then
command_args+=("${1}" "${2}")
shift 2
# Break out of the case
continue 2
fi
done
# Everything takes zero arguments, so no need to enumerate examples like: -d --debug -h --help
# Everything else takes zero arguments, so no need to enumerate examples like: -d --debug -h --help
command_args+=("${1}")
shift 1
;;
Expand Down

0 comments on commit 74e6644

Please sign in to comment.