diff options
| author | kaotisk <kaotisk@arching-kaos.org> | 2025-10-22 15:40:22 +0300 |
|---|---|---|
| committer | kaotisk <kaotisk@arching-kaos.org> | 2025-10-22 15:40:22 +0300 |
| commit | 71067ab3ffc9531e378ba6f9d52da5823f4410db (patch) | |
| tree | 130b267004433c05264fefd83c2b3ae5096a5f47 /bin | |
| parent | dc51374f544823057250916b871e1ea138ca92d2 (diff) | |
| download | arching-kaos-tools-71067ab3ffc9531e378ba6f9d52da5823f4410db.tar.gz arching-kaos-tools-71067ab3ffc9531e378ba6f9d52da5823f4410db.tar.bz2 arching-kaos-tools-71067ab3ffc9531e378ba6f9d52da5823f4410db.zip | |
[log] Introducing -v[vvvv] flag for ak
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/ak | 28 |
1 files changed, 24 insertions, 4 deletions
@@ -17,7 +17,7 @@ ### You should have received a copy of the GNU General Public License ### along with this program. If not, see <http://www.gnu.org/licenses/>. ### -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 |
