Use -- to stop suboptions

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-01-27 16:30:49 +00:00
parent 9ea48eaf66
commit 3ce6c15a81

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++) {