From 3b13a7b11b9ef5a84c2c2c97c166babfa4757420 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Fri, 25 Oct 2024 12:23:00 +1000 Subject: Support config files now. --- test_.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test_.lua') 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... local options = { - start = {help = 'Command to start the scanning process, for Sys V init.',}, + start = {help = 'Command to start the scanning process, for Sys V init.', value = 'blah'}, restart = {start}, ['force-reload'] = {start}, status = {help = 'Command to check the status of the scanning process, for Sys V init.',}, @@ -55,7 +55,10 @@ local options = ['--help'] = {help}, } -_.parse(arg, options) +print("start = " .. options.start.value) +_.parse(arg, options, 'test_') +print("start = " .. options.start.value) +print("stop = " .. options.stop.value) -- cgit v1.1