Use -- to stop suboptions

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët committed 2018-01-27 16:31:11 +00:00
1 parent 9ea48eaf66
commit 3ce6c15a81
1 file changed
+3
+3
View File
@@ -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++) {