I have read the documentation with regards to getopts but it's been no help. 
I'm sure the answer is very simple.

I'm trying to do something like this : 

`liquidsoap -ta foo -tb bar test.liq`

```
#test.liq
triggerA = getopt('-ta')

if triggerA == 'foo' then
  print("trigger A")
end
```

But this gives error : 
```
liquidsoap: unknown option '-ta'.
```

If i use an option that does exist, let's say `-t` I have have the following 
issue 

`liquidsoap -t foo test.liq`

```
triggerA = getopt('-t')

if triggerA == 'foo' then
  print("trigger A")
end
```
Result : 

```
At line 1, char 4-3: the variable foo used here has not been previously
  defined.
```
No idea what's going on. How's that documentation re-write coming along ? 





-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/574
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to