From 2a3c61fbf515ce1ee5cb98b0c84c11b4af58ec8a Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 10 Aug 2025 03:56:41 +0300 Subject: Help is not printed on the logs neither appears as logging info --- lib/_ak_script | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/_ak_script b/lib/_ak_script index 90e2023..241c182 100755 --- a/lib/_ak_script +++ b/lib/_ak_script @@ -92,14 +92,16 @@ function _ak_usage(){ _ak_title_description 2>&1 _ak_license 2>&1 _ak_help 2>&1 - ) | sed 's/^/# /g' | while read line; do _ak_log_info "${line}"; done + # ) | sed 's/^/# /g' | while read line; do _ak_log_info "${line}"; done + ) 1>&2 exit 1 else ( _ak_title_description 2>&1 _ak_license 2>&1 _ak_help 2>&1 - ) | sed 's/^/# /g' | while read line; do _ak_log_info "${line}" 2>&1; done + # ) | sed 's/^/# /g' | while read line; do _ak_log_info "${line}" 2>&1; done + ) fi } -- cgit v1.2.3