r/fishshell•
sbay

Pass multiple inputs to one -option separated by commas

I would like to pass multiple inputs A,B,C... in one option -x and parse them inside the function..

Example:

myfunc -c -x a,b,c,d

And then I could do something like:

for (i in -x)
chmod +x i

Posted Mar 12, 2018, 9:51 PM UTC

12
Loading comments…