diff options
author | dvs1 | 2024-10-25 12:23:00 +1000 |
---|---|---|
committer | dvs1 | 2024-10-25 12:23:00 +1000 |
commit | 3b13a7b11b9ef5a84c2c2c97c166babfa4757420 (patch) | |
tree | fa87b3f95bbb56178566350e219fa431c20b7ec2 /test_.lua | |
parent | Another error test. (diff) | |
download | JackOnAllDevices-3b13a7b11b9ef5a84c2c2c97c166babfa4757420.zip JackOnAllDevices-3b13a7b11b9ef5a84c2c2c97c166babfa4757420.tar.gz JackOnAllDevices-3b13a7b11b9ef5a84c2c2c97c166babfa4757420.tar.bz2 JackOnAllDevices-3b13a7b11b9ef5a84c2c2c97c166babfa4757420.tar.xz |
Support config files now.
Diffstat (limited to 'test_.lua')
-rwxr-xr-x | test_.lua | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -13,7 +13,7 @@ This is part of the blah blah blah... | |||
13 | 13 | ||
14 | local options = | 14 | local options = |
15 | { | 15 | { |
16 | start = {help = 'Command to start the scanning process, for Sys V init.',}, | 16 | start = {help = 'Command to start the scanning process, for Sys V init.', value = 'blah'}, |
17 | restart = {start}, | 17 | restart = {start}, |
18 | ['force-reload'] = {start}, | 18 | ['force-reload'] = {start}, |
19 | status = {help = 'Command to check the status of the scanning process, for Sys V init.',}, | 19 | status = {help = 'Command to check the status of the scanning process, for Sys V init.',}, |
@@ -55,7 +55,10 @@ local options = | |||
55 | ['--help'] = {help}, | 55 | ['--help'] = {help}, |
56 | } | 56 | } |
57 | 57 | ||
58 | _.parse(arg, options) | 58 | print("start = " .. options.start.value) |
59 | _.parse(arg, options, 'test_') | ||
60 | print("start = " .. options.start.value) | ||
61 | print("stop = " .. options.stop.value) | ||
59 | 62 | ||
60 | 63 | ||
61 | 64 | ||