From 71067ab3ffc9531e378ba6f9d52da5823f4410db Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 22 Oct 2025 15:40:22 +0300 Subject: [log] Introducing -v[vvvv] flag for ak --- bin/ak | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/ak b/bin/ak index ef69b2e..0861d3b 100755 --- a/bin/ak +++ b/bin/ak @@ -17,7 +17,7 @@ ### You should have received a copy of the GNU General Public License ### along with this program. If not, see . ### -export AK_DEBUG="no" +export AK_DEBUG=0 export AK_DEBUG_IRC="no" ## ## Arching Kaos CLI tool is the main executable script to use for exploring, @@ -63,9 +63,29 @@ then export AK_DEBUG="no" shift fi +if [ "$1" == "-vvvvv" ] +then + export AK_DEBUG=5 + shift +fi +if [ "$1" == "-vvvv" ] +then + export AK_DEBUG=4 + shift +fi +if [ "$1" == "-vvv" ] +then + export AK_DEBUG=3 + shift +fi +if [ "$1" == "-vv" ] +then + export AK_DEBUG=2 + shift +fi if [ "$1" == "-v" ] then - export AK_DEBUG="yes" + export AK_DEBUG=1 shift fi @@ -81,11 +101,11 @@ then args="-h" if [ -n "$subcmd" ] then - echo $subcmd | cut -d '-' -f 2 | sort | uniq | sed -e 's/^/ak /g' + echo $subcmd | cut -d '-' -f 2 | sort | uniq #| sed -e 's/^/ak /g' #$(echo $subcmd) $args fi done - ) | sort | uniq | sed 's/^/# /g' | while read line; do _ak_log_info "$line";done + ) | sort | uniq #| sed 's/^/# /g' | while read line; do _ak_log_info "$line";done exit 1 fi -- cgit v1.2.3