Liquidsoap is a statically typed scripting general-purpose language with dedicated operators and backend for all thing media, streaming, file generation, automation, HTTP backend and more.
Is your feature request related to a problem? Please describe.
I'd like to get argv as a list instead of a function.
It will make it possible to determine the number of arguments.
Describe the solution you'd like
I believe only the first argument, which is not an option, should be treated as a script.
liquidsoap 1.liq 2.liq will run liquidsoap with the script 1.liq.
argv should be equal to ["1.liq", "2.liq"].
./1.liq 2.liq will run liquidsoap with the script 1.liq.
argv should be equal to ["./1.liq", "2.liq"].
If you want to add libraries, you can use the -L, --lib option which allows for multiple arguments.
liquidsoap -L 2.liq --lib 3.liq 1.liq 1 2 will run liquidsoap with the script 1.liq.
Additionally, 2.liq and 3.liq will be included.
argv should be equal to ["1.liq", "1", "2"].
Is your feature request related to a problem? Please describe. I'd like to get
argv
as a list instead of a function. It will make it possible to determine the number of arguments.Describe the solution you'd like I believe only the first argument, which is not an option, should be treated as a script.
liquidsoap 1.liq 2.liq
will run liquidsoap with the script 1.liq.argv
should be equal to["1.liq", "2.liq"]
../1.liq 2.liq
will run liquidsoap with the script 1.liq.argv
should be equal to["./1.liq", "2.liq"]
.-L, --lib
option which allows for multiple arguments.liquidsoap -L 2.liq --lib 3.liq 1.liq 1 2
will run liquidsoap with the script 1.liq. Additionally, 2.liq and 3.liq will be included.argv
should be equal to["1.liq", "1", "2"]
.Describe alternatives you've considered N/A
Additional context N/A