From ec93522a295b9ee74f7fa8cbbd7752f2c1ef6ce6 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 24 Jul 2024 17:41:46 +0300 Subject: ak-zblock: new flag --repack Plus: - compacted help output text - avoid calling library functions directly fix (unbreaks previous commit) - fix on call to _ak_zblock_pack where the arguments weren't passed to the function --- bin/ak-zblock | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'bin') diff --git a/bin/ak-zblock b/bin/ak-zblock index d3d24ae..3a16ec4 100755 --- a/bin/ak-zblock +++ b/bin/ak-zblock @@ -4,18 +4,16 @@ ## from given information, which can be added on top of your zchain. ## ## Usage: -## -## -h, --help Prints this help message -## -## -s, --show Shows the zblock provided -## -## -x, --gen-html Generates an HTML document for a given zblock -## -## -c, --cache Caches a zblock -## -## -p, --pack Packs a zblock -## -## -a, --announce Announces a zblock +## -h, --help Prints this help message +## -s, --show [zblock] Shows the zblock provided. In case +## of no zblock, the latest of your +## zchain is shown. +## -x, --gen-html Generates an HTML document for a +## given zblock +## -c, --cache Caches a zblock +## -p, --pack Packs a zblock +## -r, --repack Repacks a zblock at previous +## -a, --announce Announces a zblock ## fullprogrampath="$(realpath $0)" PROGRAM=$(basename $0) @@ -43,7 +41,11 @@ if [ ! -z $1 ]; then exit ;; -p | --pack) - _ak_zblock_pack $2 + _ak_zblock_pack $2 $3 + exit + ;; + -r | --repack) + _ak_zblock_repack $2 $3 exit ;; -a | --announce) -- cgit v1.2.3