dlmarion commented on code in PR #5035:
URL: https://github.com/apache/accumulo/pull/5035#discussion_r1831551599
##########
assemble/bin/accumulo-cluster:
##########
@@ -590,7 +626,22 @@ function main() {
accumulo_cmd="${bin}/accumulo"
SSH='ssh -qnf -o ConnectTimeout=2'
- case "$1" in
+ # Copy input arguments into new array
+ # removing any options
+ DEBUG=""
+ i=0
+ declare -a program_args
+ for arg in "$@"; do
+ if [[ $arg == "--dry-run" ]]; then
+ DEBUG="true"
+ else
+ program_args[i++]="$arg"
+ fi
+ done
Review Comment:
I left as is. I'm trying to allow `--dry-run` to be placed anywhere in the
input.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]