diff options
Diffstat (limited to '')
-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 | ||