Skip to content

Commit 3574f57

Browse files
authored
help function updated
1 parent 633eb08 commit 3574f57

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

my_rebalancer.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ fi
2727
helpFunction()
2828
{
2929
echo "FUCK $1 - something went wrong"
30-
echo "Usage: $0 -f parameterF -d parameterD -j parameterJ"
31-
echo -e "\t-f For Fee-Factor parameterF"
32-
echo -e "\t-d For Direction push (f) or pull (t) liquidity parameterD"
30+
echo "Usage: $0 -j <CHAN-ID1> -k <CHAN-ID2> -l <CHAN-ID3> ..."
3331
echo -e "\t-j Single channel ID of first and required channel"
3432
echo -e "\t-k-p arguments allow for passing additional optional channels to rebalance"
3533
exit 1 # Exit script after printing help
@@ -53,7 +51,7 @@ done
5351
if [ -z "$parameterJ" ]
5452
then
5553
echo "Required parameters are empty";
56-
helpFunction Unten
54+
helpFunction
5755
fi
5856

5957
rebalance_something ()
@@ -218,6 +216,7 @@ do
218216
then
219217
echo "kthxbuy - exiting"
220218
break
219+
exit 1
221220
else
222221
echo ""
223222
echo "All right let's f'ing go 🚀"

0 commit comments

Comments
 (0)