vivi <[email protected]> writes: > Great, it works now! However, one problem I found is that if a > unrecognized option is given, an error is posted twice, most likely due > to getopt_long running twice.
To inhibit getopt to print errors you should reset opterr. I am still unsure about using it twice; what we can do is store temporarily what getopt returns and use it later instead of repeating the whole procedure. Anyway, this can be done later. Giuseppe
