From 0479167b57eff756af4d9c530239b9ba7ef00f0e Mon Sep 17 00:00:00 2001 From: illuminatus Date: Thu, 8 Aug 2024 19:20:52 -0700 Subject: [PATCH] Update cntools.sh to include n in getopts and case. (#1803) ## Description Adds n to getopts and case statement ## Motivation and context Align the getopts/case statment with the usage menu showing `-n` is an argument, but also the default behavior when no arguments are provided ## Which issue it fixes? Closes #1802 ## How has this been tested? On a testnet node after adding the same values. --------- Co-authored-by: RdLrT <3169068+rdlrt@users.noreply.github.com> --- scripts/cnode-helper-scripts/cntools.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/cnode-helper-scripts/cntools.sh b/scripts/cnode-helper-scripts/cntools.sh index b7db7b4a0..9d9532196 100755 --- a/scripts/cnode-helper-scripts/cntools.sh +++ b/scripts/cnode-helper-scripts/cntools.sh @@ -101,8 +101,9 @@ PARENT="$(dirname $0)" # save launch params arg_copy=("$@") -while getopts :olaub:v opt; do +while getopts :nolaub:v opt; do case ${opt} in + n ) CNTOOLS_MODE="LOCAL" ;; o ) CNTOOLS_MODE="OFFLINE" ;; l ) CNTOOLS_MODE="LIGHT" ;; a ) ADVANCED_MODE="true" ;;