diff --git a/first-network/byfn.sh b/first-network/byfn.sh index ffcc5392..d2d2af51 100755 --- a/first-network/byfn.sh +++ b/first-network/byfn.sh @@ -34,7 +34,7 @@ export FABRIC_CFG_PATH=${PWD} # Print the usage message function printHelp () { echo "Usage: " - echo " byfn.sh -m up|down|restart|generate [-c ] [-t ] [-d ] " + echo " byfn.sh -m up|down|restart|generate [-c ] [-t ] [-d ] [-f ]" echo " byfn.sh -h|--help (print this message)" echo " -m - one of 'up', 'down', 'restart' or 'generate'" echo " - 'up' - bring up the network with docker-compose up" @@ -44,6 +44,7 @@ function printHelp () { echo " -c - channel name to use (defaults to \"mychannel\")" echo " -t - CLI timeout duration in microseconds (defaults to 10000)" echo " -d - delay duration in seconds (defaults to 3)" + echo " -f - specify which docker-compose file use (defaults to docker-compose-cli.yaml)" echo echo "Typically, one would first generate the required certificates and " echo "genesis block, then bring up the network. e.g.:" @@ -318,6 +319,8 @@ while getopts "h?m:c:t:d:" opt; do ;; d) CLI_DELAY=$OPTARG ;; + f) COMPOSE_FILE=$OPTARG + ;; esac done