diff options
| author | dvs1 | 2024-10-25 17:03:37 +1000 |
|---|---|---|
| committer | dvs1 | 2024-10-25 17:03:37 +1000 |
| commit | 3f951ef6c99dea24908c47c375db433e5aabe7c9 (patch) | |
| tree | 9db4b74bec1d63fd2b72c69d39f004a1ae763f53 | |
| parent | Help command now prints out full usage as well. (diff) | |
| download | JackOnAllDevices-3f951ef6c99dea24908c47c375db433e5aabe7c9.zip JackOnAllDevices-3f951ef6c99dea24908c47c375db433e5aabe7c9.tar.gz JackOnAllDevices-3f951ef6c99dea24908c47c375db433e5aabe7c9.tar.bz2 JackOnAllDevices-3f951ef6c99dea24908c47c375db433e5aabe7c9.tar.xz | |
Seems to be he only way to assign copies of table elemnts to that table at construction time.
| -rwxr-xr-x | test_.lua | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -15,8 +15,8 @@ Version = '0.0 crap' | |||
| 15 | local options = | 15 | local options = |
| 16 | { | 16 | { |
| 17 | start = {help = 'Command to start the scanning process, for Sys V init.', value = 'blah'}, | 17 | start = {help = 'Command to start the scanning process, for Sys V init.', value = 'blah'}, |
| 18 | restart = {start}, | 18 | -- restart = {start}, |
| 19 | ['force-reload'] = {start}, | 19 | -- ['force-reload'] = {start}, |
| 20 | status = {help = 'Command to check the status of the scanning process, for Sys V init.',}, | 20 | status = {help = 'Command to check the status of the scanning process, for Sys V init.',}, |
| 21 | stop = {help = 'Command to stop the scanning process, for Sys V init.',}, | 21 | stop = {help = 'Command to stop the scanning process, for Sys V init.',}, |
| 22 | JACK = {help = 'Command to start the JACK stuff, for users.',}, | 22 | JACK = {help = 'Command to start the JACK stuff, for users.',}, |
| @@ -48,6 +48,8 @@ local options = | |||
| 48 | end | 48 | end |
| 49 | }, | 49 | }, |
| 50 | } | 50 | } |
| 51 | options['restart'] = options['start'] | ||
| 52 | options['force-reload'] = options['start'] | ||
| 51 | 53 | ||
| 52 | print("start = " .. options.start.value) | 54 | print("start = " .. options.start.value) |
| 53 | _.parse(arg, options, 'test_') | 55 | _.parse(arg, options, 'test_') |
