From 0fd522a6e324de08a99bdd42ead193acff6f3d15 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 5 Apr 2024 14:23:22 +0300 Subject: various fixes, surely still broken in places --- bin/ak-profile | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'bin/ak-profile') diff --git a/bin/ak-profile b/bin/ak-profile index 74491ef..d513c9a 100755 --- a/bin/ak-profile +++ b/bin/ak-profile @@ -5,22 +5,25 @@ ## ## Usage: ## -## -h, --help Prints this help message +## -h, --help Prints this help message ## -## index Show current status +## -i, --index Show current status ## -## show Show profile entry from specified DATA IPFS CIDv0 +## --show Show profile entry from specified DATA +## IPFS CIDv0 ## -## set Sets a profile value +## -s, --set Sets a profile value ## -## get Gets a profile value from the on-disk file. +## -g, --get Gets a profile value from the on-disk +## file. ## ## Advanced (use with caution may produce duplicate entries): ## -## add Creates a data file from the profile file you point -## to (file should already be in ZPROFILEDIR. +## -a, --add Creates a data file from the profile file +## you point (file should already be in +## ZPROFILEDIR). ## -## import Import a folder to zchain #TODO +## -i, --import Import a folder to zchain #TODO ## fullprogrampath="$(realpath $0)" PROGRAM=$(basename $0) @@ -211,12 +214,12 @@ EOF if [ ! -z $1 ]; then case $1 in -h | --help) _ak_usage; exit;; - index) _ak_modules_profile_index; exit;; - show) _ak_modules_profile_show $2; exit;; - import) _ak_modules_profile_import $2; exit;; - add) _ak_modules_profile_add $2; exit;; - set) _ak_modules_profile_propset $2 "$3"; exit;; - get) _ak_modules_profile_propget $2; exit;; + -i | --index) _ak_modules_profile_index; exit;; + --show) _ak_modules_profile_show $2; exit;; + -i | --import) _ak_modules_profile_import $2; exit;; + -a | --add) _ak_modules_profile_add $2; exit;; + -s | --set) _ak_modules_profile_propset $2 "$3"; exit;; + -g | --get) _ak_modules_profile_propget $2; exit;; * ) _ak_usage;; esac else _ak_usage -- cgit v1.2.3