aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordvs12024-10-25 17:03:37 +1000
committerdvs12024-10-25 17:03:37 +1000
commit3f951ef6c99dea24908c47c375db433e5aabe7c9 (patch)
tree9db4b74bec1d63fd2b72c69d39f004a1ae763f53
parentHelp command now prints out full usage as well. (diff)
downloadJackOnAllDevices-3f951ef6c99dea24908c47c375db433e5aabe7c9.zip
JackOnAllDevices-3f951ef6c99dea24908c47c375db433e5aabe7c9.tar.gz
JackOnAllDevices-3f951ef6c99dea24908c47c375db433e5aabe7c9.tar.bz2
JackOnAllDevices-3f951ef6c99dea24908c47c375db433e5aabe7c9.tar.xz
Seems to be he only way to assign copies of table elemnts to that table at construction time.
-rwxr-xr-xtest_.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/test_.lua b/test_.lua
index b1ded7d..6a51b45 100755
--- a/test_.lua
+++ b/test_.lua
@@ -15,8 +15,8 @@ Version = '0.0 crap'
15local options = 15local options =
16{ 16{
17 start = {help = 'Command to start the scanning process, for Sys V init.', value = 'blah'}, 17 start = {help = 'Command to start the scanning process, for Sys V init.', value = 'blah'},
18 restart = {start}, 18-- restart = {start},
19 ['force-reload'] = {start}, 19-- ['force-reload'] = {start},
20 status = {help = 'Command to check the status of the scanning process, for Sys V init.',}, 20 status = {help = 'Command to check the status of the scanning process, for Sys V init.',},
21 stop = {help = 'Command to stop the scanning process, for Sys V init.',}, 21 stop = {help = 'Command to stop the scanning process, for Sys V init.',},
22 JACK = {help = 'Command to start the JACK stuff, for users.',}, 22 JACK = {help = 'Command to start the JACK stuff, for users.',},
@@ -48,6 +48,8 @@ local options =
48 end 48 end
49 }, 49 },
50} 50}
51options['restart'] = options['start']
52options['force-reload'] = options['start']
51 53
52print("start = " .. options.start.value) 54print("start = " .. options.start.value)
53_.parse(arg, options, 'test_') 55_.parse(arg, options, 'test_')