aboutsummaryrefslogtreecommitdiffstats
path: root/test_.lua
diff options
context:
space:
mode:
authordvs12024-10-25 09:38:35 +1000
committerdvs12024-10-25 09:38:35 +1000
commit31566d68cb3365ead1cdc8648c81d62ce966cb6f (patch)
treebbe3d4bc790530c6e955e21b18d1150d6036f73a /test_.lua
parentYet another TODO, YATODO. (diff)
downloadJackOnAllDevices-31566d68cb3365ead1cdc8648c81d62ce966cb6f.zip
JackOnAllDevices-31566d68cb3365ead1cdc8648c81d62ce966cb6f.tar.gz
JackOnAllDevices-31566d68cb3365ead1cdc8648c81d62ce966cb6f.tar.bz2
JackOnAllDevices-31566d68cb3365ead1cdc8648c81d62ce966cb6f.tar.xz
Just discovered the arg variable, use it and rename parseArgs() to just parse().
Diffstat (limited to '')
-rwxr-xr-xtest_.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/test_.lua b/test_.lua
index e4448d2..d29a433 100755
--- a/test_.lua
+++ b/test_.lua
@@ -55,8 +55,7 @@ local options =
55 ['--help'] = {help}, 55 ['--help'] = {help},
56} 56}
57 57
58local args = {...} 58_.parse(arg, options)
59_.parseArgs(options, args)
60 59
61 60
62 61
@@ -137,7 +136,12 @@ print(__'command NoSuchCommand':log():show():Do().status)
137--__'qpdfview':forkOnce() 136--__'qpdfview':forkOnce()
138--__'qpdfview':forkOnce() 137--__'qpdfview':forkOnce()
139 138
139print('')
140
141for i,a in ipairs(arg) do print('arg[' .. i .. '] = ' .. a) end
142print('')
143for k,a in pairs(arg) do print('arg[' .. k .. '] = ' .. a) end
140 144
141__'date':log():show():Do() 145__'date':log():show():Do()
142__'date; sleep 5; date':log():show():Do() 146__'date; sleep 5; date':log():show():Do()
143print('') 147