Skip to content

Commit

Permalink
Update cntools.sh to include n in getopts and case. (#1803)
Browse files Browse the repository at this point in the history
## 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 <[email protected]>
  • Loading branch information
TrevorBenson and rdlrt authored Aug 9, 2024
1 parent e5dbc6a commit 0479167
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/cnode-helper-scripts/cntools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ;;
Expand Down

0 comments on commit 0479167

Please sign in to comment.