aboutsummaryrefslogtreecommitdiffstats
path: root/test_.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test_.lua')
-rwxr-xr-xtest_.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/test_.lua b/test_.lua
index b5348f0..5876ed9 100755
--- a/test_.lua
+++ b/test_.lua
@@ -13,7 +13,7 @@ This is part of the blah blah blah...
13 13
14local options = 14local 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) 58print("start = " .. options.start.value)
59_.parse(arg, options, 'test_')
60print("start = " .. options.start.value)
61print("stop = " .. options.stop.value)
59 62
60 63
61 64