Also....I was looking at gcv.c
I saw that there was a variable called unknown_ac
. I tried using it for accesing extra arguments and it worked pretty well. We can use it for the multiple files system but don't know how we can do that.
Any suggestions?
just tested somewhat of a prototype for the multi file support for GCV but its not the kind of thing one would like
i am passing the arguments and the unknown_ac
variable straight to the plugin through gcv_options (dont remember why i used that struct for passing info).
that worked perfectly for the png plugin (i dont know how to test the other plugins so....)
one file input -> one-file.g
multi file input -> multi-file.g
the files linked above were entirely with gcv
@Sumagna Das I'm sorry for not getting back to you sooner. I've been trying to put all my time and attention into our git migration and it's been a bit all-consuming.
I think it's a bit lucky that it works via unknown args just because there aren't other commands using/claiming it. I think what we probably want to do is require explicit declaration when there are multiple inputs in order to keep the Usage deterministic. That is, in order to specify multiple inputs, one would specify -i multiple times, and same for multiple outputs. Implies -i and -o changing to a list of strings instead of assuming a single filepath string.
The alternative would be to use some sort of delimeter like -i "file1;file2;file3"
Sean said:
The alternative would be to use some sort of delimeter like -i "file1;file2;file3"
this sounds like a good idea.
Sean said:
Sumagna Das I'm sorry for not getting back to you sooner. I've been trying to put all my time and attention into our git migration and it's been a bit all-consuming.
no problem
Last updated: Jan 09 2025 at 00:46 UTC