I think this should either just be a `strcmp(a, "-L")` or maybe that 3 should be a 2 if you are just checking for a `-L` prefix.