aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2022-10-25 13:25:43 +0300
committerkaotisk <kaotisk@arching-kaos.org>2022-10-25 13:25:43 +0300
commit4c76faf4c1a3d41fbd4c208d4ed43063077a2558 (patch)
tree38fb600d97d92de5680571b154e8e9471faf0293
parent43fd4cd936eed3cbb9651942d7f21115dca1ea1d (diff)
downloadarching-kaos-tools-4c76faf4c1a3d41fbd4c208d4ed43063077a2558.tar.gz
arching-kaos-tools-4c76faf4c1a3d41fbd4c208d4ed43063077a2558.tar.bz2
arching-kaos-tools-4c76faf4c1a3d41fbd4c208d4ed43063077a2558.zip
Added usage information
-rwxr-xr-xbin/zchain-reset16
1 files 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 (){