Use -- to stop suboptions
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
1 parent
9ea48eaf66
commit
3ce6c15a81
1 file changed
+3
@@ -61,6 +61,9 @@ option_option(void *data, int argc, char **argv)
|
||||
opts[k].set = 0;
|
||||
|
||||
for (int i = 1; i < argc; i++) {
|
||||
if (!str_cmp(argv[i], "--"))
|
||||
return i;
|
||||
|
||||
int found = 0;
|
||||
|
||||
for (int k = 0; opts[k].name; k++) {
|
||||
|
||||
Reference in new issue
Block a user