diff --git a/sch2fig/main.c b/sch2fig/main.c index 8831595..e651165 100644 --- a/sch2fig/main.c +++ b/sch2fig/main.c @@ -108,8 +108,9 @@ int main(int argc, char *const *argv) found: ; } - - + + optind = 0; /* reset getopt */ + sch_init(&sch_ctx, recurse); sch_parse(&sch_ctx, argv[dashdash - 1]); gfx_init(*ops, gfx_argc, gfx_argv);