diff --git a/option.c b/option.c index ee2df6a..5e5688c 100644 --- a/option.c +++ b/option.c @@ -50,6 +50,9 @@ int option_option (void *data, int argc, char **argv) { struct option *opts = (struct option *)data; + for (int k=0; opts[k].name; k++) + opts[k].set = 0; + for (int i=1; i