From 3f951ef6c99dea24908c47c375db433e5aabe7c9 Mon Sep 17 00:00:00 2001 From: dvs1 Date: Fri, 25 Oct 2024 17:03:37 +1000 Subject: Seems to be he only way to assign copies of table elemnts to that table at construction time. --- test_.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test_.lua') diff --git a/test_.lua b/test_.lua index b1ded7d..6a51b45 100755 --- a/test_.lua +++ b/test_.lua @@ -15,8 +15,8 @@ Version = '0.0 crap' local options = { start = {help = 'Command to start the scanning process, for Sys V init.', value = 'blah'}, - restart = {start}, - ['force-reload'] = {start}, +-- restart = {start}, +-- ['force-reload'] = {start}, status = {help = 'Command to check the status of the scanning process, for Sys V init.',}, stop = {help = 'Command to stop the scanning process, for Sys V init.',}, JACK = {help = 'Command to start the JACK stuff, for users.',}, @@ -48,6 +48,8 @@ local options = end }, } +options['restart'] = options['start'] +options['force-reload'] = options['start'] print("start = " .. options.start.value) _.parse(arg, options, 'test_') -- cgit v1.1