aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-schain
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-07-17 09:08:37 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-07-17 09:08:37 +0300
commit7b3a9fbef2c28a6ea7c2b5a49f8a130f4d1bf05f (patch)
treee4ef82f8cfc3a9f33848645fb3d8715f20a43ecc /bin/ak-schain
parent708bfcffd76ea0665796bce02dd7c887af37e77e (diff)
downloadarching-kaos-tools-7b3a9fbef2c28a6ea7c2b5a49f8a130f4d1bf05f.tar.gz
arching-kaos-tools-7b3a9fbef2c28a6ea7c2b5a49f8a130f4d1bf05f.tar.bz2
arching-kaos-tools-7b3a9fbef2c28a6ea7c2b5a49f8a130f4d1bf05f.zip
ak-schain: -l | --get-latest
Diffstat (limited to 'bin/ak-schain')
-rwxr-xr-xbin/ak-schain5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/ak-schain b/bin/ak-schain
index 9fa41b0..5d4a442 100755
--- a/bin/ak-schain
+++ b/bin/ak-schain
@@ -8,6 +8,10 @@
##
## -c, --crawl Crawl an schain or latest known
##
+## -l, --get-latest Returns latest sblock from saved sblocks. The
+## latest sblock would belong to the longest
+## schain if more than one schains found.
+##
fullprogrampath="$(realpath $0)"
PROGRAM=$(basename $0)
descriptionString="Schain tools"
@@ -22,6 +26,7 @@ then
case $1 in
-h | --help) _ak_usage; exit;;
-c | --crawl) shift; _ak_schain_crawl_interface $*; exit;;
+ -l | --get-latest) _ak_schain_get_latest; exit;;
* ) _ak_usage;;
esac
else _ak_usage