From 5833e7483357daa24b8ddc1f766a6446d0d30495 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Fri, 25 Oct 2024 13:40:21 +1000 Subject: Moved common stuff like --help, --version to an internal options table we scan as well. --- aataaj.lua | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'aataaj.lua') diff --git a/aataaj.lua b/aataaj.lua index 6108dd5..5e45525 100755 --- a/aataaj.lua +++ b/aataaj.lua @@ -17,7 +17,7 @@ local _ = require '_' -local Help = [[ +Help = [[ This is part of the AllAudioToALSAandJACK project, aataaj for short, pronounced like "attach". @@ -81,7 +81,7 @@ NOTE - Seems both ALSA and JACK are per user. So you need to run "aataaj JACK" for each user. ]] - +Version = '0.0 crap' local options = @@ -107,7 +107,7 @@ local options = STOP = { help = 'Command to stop the JACK stuff, for users.', - func = function(a, args, i) + func = function(self, a, args, i) _.killEmAll{'qsynth'} __[[#!/bin/bash a2j_control --stop @@ -132,15 +132,6 @@ local options = os.exit(0) end }, - help = - { - help = 'Print help.', - func = function(a, args, i) - print(Help) - os.exit(0) - end - }, - ['--help'] = {help}, } _.parse(arg, options) -- cgit v1.1