From 44cfa7391a5fae70f27dea3b4f0d386417d0c21f Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Sat, 18 Aug 2018 10:42:57 -0400 Subject: [PATCH] Remove the no-longer-used option: --debug Its sensible to have the debugging facilities, but not sensible to have an option to turn-on a non-existent feature, so until debugging facilities are back - the option has to go. --- bin/khatus | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bin/khatus b/bin/khatus index 8c67869..8ae2039 100755 --- a/bin/khatus +++ b/bin/khatus @@ -87,7 +87,6 @@ fork_poller() { main() { declare -A opts=( - ["--debug"]=0 ["--dir_bin"]="$HOME/bin" ["--dir_perf_logs"]='' ["--file_pipe"]=$(mktemp) @@ -126,11 +125,7 @@ main() { * ) if [ -v opts["$key"] ] then - if [ "$key" == "--debug" ] - then - opts["$key"]=1 - shift - elif [ "$val" != "" ] + if [ "$val" != "" ] then opts["$key"]="$val" shift @@ -212,7 +207,6 @@ main() { | stdbuf -o L tee \ >(stdbuf -o L "$bin"/khatus_bar \ -F "$MSG_FS" \ - -v opt_debug=""${opts['--debug']}"" \ -v opt_mpd_song_max_chars=10 \ -v opt_net_interfaces_to_show="${opts['--net_interfaces_to_show']}" \ -v opt_pulseaudio_sink="${opts['--pulseaudio_sink']}" \ -- 2.20.1