From 4c76faf4c1a3d41fbd4c208d4ed43063077a2558 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 25 Oct 2022 13:25:43 +0300 Subject: Added usage information --- bin/zchain-reset | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/bin/zchain-reset b/bin/zchain-reset index e24c161..813dc33 100755 --- a/bin/zchain-reset +++ b/bin/zchain-reset @@ -1,10 +1,16 @@ #!/bin/bash -title(){ - echo "Zchain reset" - echo "------------" -} +PROGRAM=$(basename $0) usage(){ - echo "Usage: $0 reset" + echo "$PROGRAM - Zchain reset" + echo "" + echo "Description:" + echo "Backs up your latest block into IPFS filesystem, replaces it with an empty file (GENESIS hardcode) and pushes its IPFS link as your chain's latest block." + echo "" + echo "Disclaimer:" + echo "This program, does NOT delete anything from your IPFS repository, neither denies access to previously created blocks." + echo "" + echo "Usage:" + echo " $PROGRAM reset" exit 0 } reset (){ -- cgit v1.2.3