From 0f87a32bcf940873823fa7618f0fbb863a55f7f5 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 25 Jul 2025 17:05:37 +0300 Subject: [help] Help messages are printed in stdout when called but on stderr in case of error --- bin/ak-ns | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/ak-ns') diff --git a/bin/ak-ns b/bin/ak-ns index 01c8b3a..94bdcd9 100755 --- a/bin/ak-ns +++ b/bin/ak-ns @@ -66,7 +66,8 @@ then -pn | --publish2name) shift; _ak_ns_publish2name $1 $2; exit;; -pz | --publish-zchain) _ak_ns_publish_zchain; exit;; -pc | --publish-config) _ak_ns_publish_config; exit;; - * ) _ak_usage;; + * ) _ak_usage err;; esac -else _ak_usage +else + _ak_usage err fi -- cgit v1.2.3