-implement --help for taler-bank-manage-testing

This commit is contained in:
Christian Grothoff 2023-01-11 13:35:40 +01:00
parent 5ea311f9f6
commit e38f321793
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -1,9 +1,9 @@
#!/bin/sh #!/bin/sh
# This file is in the public domain # This file is in the public domain
# Wrapper around 'taler-bank-manage' to first configure the required # Wrapper around libeufin to first configure the required
# testing accounts before launching the bank properly. # testing accounts before launching the bank properly.
# #
# Takes 3 arguments: # Takes 4 arguments:
# $1: the Nexus port (Sandbox port prepends 1 to it) # $1: the Nexus port (Sandbox port prepends 1 to it)
# $2: the database name # $2: the database name
# $3: exchange base URL (used to specify the default exchange) # $3: exchange base URL (used to specify the default exchange)
@ -11,6 +11,12 @@
set -eu set -eu
if [ "$1" -eq "--help ];
then
echo "This is a tool to launch a libeufin based bank for testing."
echo "Call using: Nexus port number, SQLite file path, exchange base URL, config file path."
exit 0
fi
if [ "$#" -ne 4 ]; if [ "$#" -ne 4 ];
then then
echo "illegal number of parameters. \ echo "illegal number of parameters. \