improve adding arguments to ARGS array

This commit is contained in:
Nathaniel Landau
2021-10-24 22:47:22 -04:00
parent d7d6edb003
commit 1306924c91
2 changed files with 12 additions and 2 deletions

View File

@@ -207,7 +207,12 @@ _parseOptions_() {
esac
shift
done
if [[ -z ${*} || ${*} == null ]]; then
ARGS=()
else
ARGS+=("$@") # Store the remaining user input as arguments.
fi
}
_usage_() {

View File

@@ -516,7 +516,12 @@ _parseOptions_() {
esac
shift
done
if [[ -z ${*} || ${*} == null ]]; then
ARGS=()
else
ARGS+=("$@") # Store the remaining user input as arguments.
fi
}
_usage_() {